Emacs and org-mode: org-protocol capture from Firefox, eval'ing elisp directly, syntax highlighting

Аватар автора
Chrome Wanderings
I was looking for something and came across "What the .emacs.d!?" again, and I scrolled down to a post about a "join-line" command. I set up org-protocol today, so I was able to do this, which is pretty cool, showing the power of Emacs and org-mode: 1. In Firefox (Pentadactyl), highlight the blog post, including the code, and press "cc" to send it through org-protocol to org-capture in Emacs. 2. In Emacs, move the point to after the elisp code, and "C-x C-e" to eval it, which binds "M-j" to "join-line". 3. Move the point down to the example HTML code and press "M-j" to do just what he said it would do. 4. Just for fun, add the appropriate lines around the code to make org-mode fontify it with syntax highlighting. And I suppose, if you were using w3m or eww, you could skip the Firefox/Pentadactyl part and eval the code directly from the browser buffer. Carefully, of course... ;)

0/0


0/0

0/0

0/0