Emacs + Snippets

People use to joke on me about the fact that I use EMACS, some say that I even need to use my toes to acomplish EMACS commands, and so on…

But I keep being even more productive, and every day I figure out new ways to improve it.

I really use EMACS the whole day, I keep editing anything with this awesome editor.

This weekend I was starting a new project, and as I use to, I was needing to repeat  the same GPL headers at every file.

So I found myself questioning if it could be more productive than inserting rough templates on my files.

Then I found out this yasnippet, which is totally awesome, and made me be even more productive.

For those who also like emacs, I share my emacs configuration on github.

There is a screencast that I made. Is a EMACS snippet demo.

3 Responses to “Emacs + Snippets”

  1. Adolfo Sousa disse:

    Hi Gabriel,
    I’m trying to learn and get productive with emacs. How have you learned it? Books? Tutorials? Could you give me some hints? Thanks

  2. admin disse:

    Hi Adolfo!

    Well, I took such a long time to become a emacs hard(ish)-user, I’ve tried about 3 times, but at the last attempt I’ve figured out a good tip:

    Disable your arrow keys. On my github you can find the configuration that disables the arrow keys:

    (global-set-key (kbd "<up>") 'ignore)
    (global-set-key (kbd "<down>") 'ignore)
    (global-set-key (kbd "<left>") 'ignore)
    (global-set-key (kbd "<right>") 'ignore)

    It will force you to use the emacs navigation, for instance:

    Ctrl-f
    Ctrl-b
    Ctrl-n
    Ctrl-p
    Alt-f
    Alt-b
    Ctrl-v
    Alt-v

    I hope it helps :)

Leave a Response