Imagine that you’re using Emacs and you have a list of items that you would like to convert into a numbered list. We’re going from: first second third To: 1. first 2. second 3. third Obviously, there are many ways to achieve this, but one is to use the Emacs Keyboard Macro Counter. Put the … Continue reading
I always find flymake extremely useful when editing code in Emacs. In this period, I’m working a bit with PHP and I’ve immediately thought that enabling flymake for Emacs was indeed a good idea. Well, someone has apparently already thought about it, so everything you need to know about it is explained here. I tried … Continue reading
Sometimes, when you edit a textarea on a web page (for example, to write a new post on your blog), you would really like to use an external text editor for that. I personally love Emacs, I’m addicted to its shortcuts and key bindings and I would love to use it, for example, for searching … Continue reading
I’ve just started using Emacs for PHP development and the first thing I wanted to do was to browse the official PHP documentation directly from within Emacs. I know that a couple of existing PHP modes claim to offer documentation browsing, but as far as I’ve seen they merely open a browser and point to … Continue reading
Sometimes you want to paste some old content from the clipboard, instead of the last copied thing. In this case, just paste as usual: C-y Then, browse the clipboard history by typing: M-y
If you want to revert your changes to the last revision, just type: C-x v u
If you want to see the differences for a buffer before committing it, just type: C-x v =
If you want to run a shell command within Emacs, you can simply type: M-! If you want to include the output into the current buffer, then: C-u M-!