Live data from Hacker News

The single most useful Emacs feature

stackoverflow.com

91–100 of 112 posts

Re: The single most useful Emacs feature

#91
post #56

The kill ring. I would marry the kill ring and have its babies. Why have other editors not adopted this? Have they?

I haven't used Emacs, but I've worked with people who have, and the one thing that made me think 'wow' was this. So many times have I yanked something, deleted some white space or some such, and then lost it. If (like me) you are a Vim user, there is a plugin to replicate this functionality called YankRing. Highly recommended! http://www.vim.org/scripts/script.php?script_id=1234

The register 0-9 store the last ten deletes (yanks?) in Vim.

Re: The single most useful Emacs feature

#92
post #46
post #37

It's interesting that it's hard to explain, because the fingers will play the chord by themselves and I need to stop and think to know what I am actually typing. C-x r k to cut a rectangle, and C-x r t to add one filled with, for example, the comment symbol: (C-space)this to comment C-x r t # #this #to comment

You can also use the M-x comment-region and M-x uncomment region to comment stuff. If you use it a lot, just bind them to a convenient key stroke.

and/or M-x comment-box

Re: The single most useful Emacs feature

#93
post #56

The kill ring. I would marry the kill ring and have its babies. Why have other editors not adopted this? Have they?

I haven't used Emacs, but I've worked with people who have, and the one thing that made me think 'wow' was this. So many times have I yanked something, deleted some white space or some such, and then lost it. If (like me) you are a Vim user, there is a plugin to replicate this functionality called YankRing. Highly recommended! http://www.vim.org/scripts/script.php?script_id=1234

The register 0-9 store the last ten deletes (yanks?) in Vim. This serves the same purpose as the kill ring.

Re: The single most useful Emacs feature

#94
post #56

The kill ring. I would marry the kill ring and have its babies. Why have other editors not adopted this? Have they?

I wish the Windows Clipboard would implement a version of the kill ring. I really, really hate not having previous cuts and copies available. As a rather clumsy work-around I keep an emacs scratch file open on my task bar and copy stuff I might need more than once to it.

Sounds like you want XKeymacs it gives Emacs keyboard commands to all Windows applications, including a kill ring.

http://www.cam.hi-ho.ne.jp/oishi/indexen.html

Re: The single most useful Emacs feature

#95
post #5

hi-lock-mode! Hi-lock lets you specify regexes to highlight anywhere in a file; it's like domain-specific font-lock. It's astoundingly useful in code review. For instance, given a giant blob of J2EE web handler code, I can eyeball one handler, recognize the annotation mapping the method to URL syntax, and then punch in a hi-lock regex to light up similar annotations everywhere in the file, then glance through the who…

I've been trying to figure out a good way to do this for a while in vim, and can't say I've found much. The best i can figure is something to this effect: highlight LowVis ctermbg=233 guibg=233 ctermfg=240 syn region LowVis start="\s*log_" end=";" contains=LowVis oneline

Have you tried `:help :match`? I'm not sure if I'm missing anything but this seems to do the same thing.

Re: The single most useful Emacs feature

#96
post #2

It isn't an official part of Emacs, but no Emacs user should go without installing el-get, the meta-package-manager for Emacs. https://github.com/dimitri/el-get El-get can install and update elisp from git, svn, http, and EmacsWiki. (It also wraps ELPA and apt-get where packages exist.) If el-get doesn't have a recipe for your favorite Emacs extension, please consider adding the recipe and pushing to GitHub. (It does…

+1. el-get is the homebrew of Emacs, and is even better for letting you hook in to do custom init.

Re: The single most useful Emacs feature

#98
post #43

TRAMP. Being able to seamlessly remotely edit files and run remote modes. At work I regularly edit files on 10-15 remote machines. But I never ssh to them and run an editor. Instead I'll just visit them through TRAMP, run Magit to commit stuff that I've done etc.

I use tramp as well, but can't say I like it. Blocking whole UI because of network problems, leaving garbage in the shell history on the machines I'm connecting to, getting confused (and hung-up) by different prompts. It's nice, but too volatile.

Re: The single most useful Emacs feature

#100

Earlier quoted context omitted.

I haven't used Emacs, but I've worked with people who have, and the one thing that made me think 'wow' was this. So many times have I yanked something, deleted some white space or some such, and then lost it. If (like me) you are a Vim user, there is a plugin to replicate this functionality called YankRing. Highly recommended! http://www.vim.org/scripts/script.php?script_id=1234

The register 0-9 store the last ten deletes (yanks?) in Vim. This serves the same purpose as the kill ring.

Oh yes. The only thing I wish vi had was a key that let you traverse these so you don't have to remember exactly how many yanks ago you yanked something.
Post reply on HN