Live data from Hacker News

Deft -- easy note taking for Emacs

jblevins.org

21–30 of 41 posts

Re: Deft -- easy note taking for Emacs

#21
post #8

My notes have gotten pretty extensive and sprawling, so I have a cron job which every hour indexes all org-mode and python files with swish[1]. It's pretty hacky, but I've integrated this with emacs's dired-mode, so that I get a clickable list[2]. It's an absolute life saver, at times. [1] http://swish-e.org/docs/swish-search.html [2] http://pastebin.com/xeDbjKhA

Clickable urls:

http://swish-e.org/docs/swish-search.html

http://pastebin.com/xeDbjKhA

Re: Deft -- easy note taking for Emacs

#23
post #10

It's when I see gems like these that I feel like spending time to learn emacs. I've tried a couple of times.. but it is so damn hard. I feel like vim keybindings are burnt in my memory/fingers.. and it makes it so unproductive to relearn something totally different. Any vim power user successfully switched to Emacs? If so, did you switch back missing Vim or you're still using emacs and couldn't be happier? (I'm still…

I'm a hardcore Emacs user and yet my keybindings are Vim keybindings. I sleep well at night.

There's a package called "Evil" that provides good Vim keybindings to Emacs. You might hear references to "Vimpulse"; this is the successor to that.

My config file is at https://github.com/pavpanchekha/dotfiles/blob/master/.emacs.... --- you probably care about the section on Vim keybindings.

Re: Deft -- easy note taking for Emacs

#24
post #8

My notes have gotten pretty extensive and sprawling, so I have a cron job which every hour indexes all org-mode and python files with swish[1]. It's pretty hacky, but I've integrated this with emacs's dired-mode, so that I get a clickable list[2]. It's an absolute life saver, at times. [1] http://swish-e.org/docs/swish-search.html [2] http://pastebin.com/xeDbjKhA

Clickable urls: http://swish-e.org/docs/swish-search.html http://pastebin.com/xeDbjKhA

Thanks, I did that for the formatting, without really thinking about the impact on the links.

Re: Deft -- easy note taking for Emacs

#26

Why are the rows hard-set to 80 columns? Is there a way to change this value, or better yet, have it auto-fill to the width of the window?

I don't use Deft, so YMMV, but it sounds like you're looking for visual-line-mode.

Interactively:

  M-x visual-line-mode
Or in your .emacs:

  (add-hook 'deft-mode-hook 'enable-visual-line-mode)
You'll probably need to set deft-line-width to some number that's larger than the most columns you ever have in a frame, because from a quick glance it looks like Deft has some magic of its own.

Re: Deft -- easy note taking for Emacs

#27
post #10

It's when I see gems like these that I feel like spending time to learn emacs. I've tried a couple of times.. but it is so damn hard. I feel like vim keybindings are burnt in my memory/fingers.. and it makes it so unproductive to relearn something totally different. Any vim power user successfully switched to Emacs? If so, did you switch back missing Vim or you're still using emacs and couldn't be happier? (I'm still…

Hi,

I have been using vim extensively for about 8 years and used a boring phase during my previous work-life to start learning Emacs. My motivation was not because I liked anything particularly well in Emacs or disliked vim, but more that I wanted to see first-hand what the difference is really all about. (So that I know what the flame wars are all about, without ever needing [and also never wanting] to participate in one...)

I am still using vim from time to time, but cannot imagine going back to vim full-time and leaving Emacs. The learning curve is steep and getting a nice setup takes considerable time (thankfully, there are very enlightening articles, for example the one from Steve Yegge, as well as the excellent emacswiki; plus, many people post their ".emacs" file on the web.) IIRC, it took me about 6 months until I felt proficient, and now, after almost 5 years or so, I couldn't actually be happier. There are many reasons to my happiness with Emacs (TRAMP, ido, yasnippet, auctex+reftex, vcs-interface, dired+, org-mode, macros, breadcrumbs, etc.) but I don't want to get into that, let's just finish this by saying: if you're generally interested and have some time at your hands (it's far less cumbersome as you might think, and mechanically codifying is usually [for me at least] not really the time consuming task in programming), just do it and stick with it for a couple of weeks!

Re: Deft -- easy note taking for Emacs

#28
post #20
post #17

Earlier quoted context omitted.

I had the exact same experience, and agree with everything you said. I'll note that I tried vimpulse for a while. Then I stopped. I wish I could be more helpful, but that's all I remember. I don't even know if stopping was an actual decision that I made, or if I just didn't start again after reinstalling everything. (vimpulse-mode is an attempt to bring vim keybindings to emacs.)

I tried using viper, and eventually just got confused and realized that I should just learn emacs...and the best way of learning emacs was to go cold turkey. Some things emulated vi, not vim (delete key would not remove a newline, pressing undo twice resulted in undo->redo (and no net change)). Some things were intercepted by emacs (C-v to try to enter visual block mode). It was just a confusing and unhappy time.

seconded! I made the same beginner's error, too, and then decided that it was just the wrong thing to do. Emacs does not have a modal concept and cursor movement is not done with "hjkl" (and "ew") in Emacs. As Steve Yegge said, you should use incremental search forwards and backwards instead. I guess that eliminates many of vim's keystrokes (stats would be interesting), so staying with its keybindings might be prohibitive to learning Emacs...

Re: Deft -- easy note taking for Emacs

#29
post #18
post #10

It's when I see gems like these that I feel like spending time to learn emacs. I've tried a couple of times.. but it is so damn hard. I feel like vim keybindings are burnt in my memory/fingers.. and it makes it so unproductive to relearn something totally different. Any vim power user successfully switched to Emacs? If so, did you switch back missing Vim or you're still using emacs and couldn't be happier? (I'm still…

I've had the same feeling. When I learned about org mode, I actually spent a week using emacs exclusively trying to get used to it and failed. But whenever I feel this way I wonder why these sorts of applications don't exist for vim. I don't know many people who would argue that vimscript is as good a language as lisp is, but isn't it complete enough to do stuff like this? Or you could use python to do it. Is it a cu…

Armchair psychology: I think vi users have a more "Unix mindset" as in a program should do one thing and do it well. While Emacs users want to do everything in Emacs (browse the net, walk directories, use shells, edit movies, etc. etc.)

The generalisations I just made are so broad as to be useless though :-)

Re: Deft -- easy note taking for Emacs

#30
post #11

I use https://github.com/cefstat/simplenote.el to synchronize with simplenote service and on mobile device and Notational Velocity. Deft seems little more refined, and simplenote.el has not been updated for a while, but would be nice if it synced with simplenote.

I'm the author of simplenote.el. Deft looks very interesting and I am happy that simplenote.el was of some use to Jason for writing Deft. As a sidenote, I am always pleasantly surprised when I hear that people are using simplenote.el; this was just a small personal project that I put on github on a whim.

You should not expect much more to happen with simplenote.el since I don't feel very motivated to work on it anymore. When I first wrote simplenote.el the Simplenote app and platform were perfect. Since then Simplenote has changed to a direction that I don't like (tags, different pay model) [1]. Furthermore, I have been lately traveling a lot to China and Appspot is blocked there. This limits the usefulness of Simplenote.

I do plan to rewrite simplenote.el for Simplenote's API2 and clean up the code but at the moment I don't plan to add any new features. In particular, I don't plan to add any support for tags. Of course everybody is welcome to fork simplenote.el and continue its development.

[1]: I understand that most Simplenote users are happy with these changes and actually Simperium has done a great job in adding features in an unobtrusive way.

Post reply on HN