`C-u SPC` which pops the mark. This allows you to go back to different places in your buffer quickly. For example, if you are editing a program and need to add an import statement, you could do it like this: `C-SPC M- If you are using transient-mark-mode, you can use `C-SPC C-SPC` to active and deactive the highlighted region. That'll still leave a mark.
The single most useful Emacs feature
71–80 of 112 posts
Re: The single most useful Emacs feature
#72`C-u SPC` which pops the mark. This allows you to go back to different places in your buffer quickly. For example, if you are editing a program and need to add an import statement, you could do it like this: `C-SPC M- If you are using transient-mark-mode, you can use `C-SPC C-SPC` to active and deactive the highlighted region. That'll still leave a mark.
The nice thing is that many commands set the mark automatically. So in your example, there's no need for the initial C-SPC.
Re: The single most useful Emacs feature
#73It'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
I find cua-mode's rectangle support superior. http://trey-jackson.blogspot.com/2008/10/emacs-tip-26-cua-mo...
Re: The single most useful Emacs feature
#74It'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.
Re: The single most useful Emacs feature
#75The 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.
Re: The single most useful Emacs feature
#76Re: The single most useful Emacs feature
#77I love how every post on Stack Overflow that gets popular on Hacker News always gets closed by SO admins as "not constructive". It's like they really are annoyed when their stuff gets noticed by the world outside their walled garden. What are they - hipsters? "I was a fan of internet startups before they got popular, dude." It's bad enough on Wikipedia, which appears to operate on the principle that a megabyte of har…
Re: The single most useful Emacs feature
#78Multiple buffers, and windows against them.
Followed closely by mode-specific buffers (c-mode, etc.).
Buffers with command shells are the bee's knees. I love those things.
Re: The single most useful Emacs feature
#79I love how every post on Stack Overflow that gets popular on Hacker News always gets closed by SO admins as "not constructive". It's like they really are annoyed when their stuff gets noticed by the world outside their walled garden. What are they - hipsters? "I was a fan of internet startups before they got popular, dude." It's bad enough on Wikipedia, which appears to operate on the principle that a megabyte of har…
Less cynically, Stack Overflow is about specific answers to specific questions. Any question broad enough to be interesting to a site like Hacker News is too broad for Stack Overflow, apparently.
Re: The single most useful Emacs feature
#80TRAMP. 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.
Edit: Holy crap, it does. That's going to be useful.