(Stupid) Useful Emacs Tricks? 412
Count Fenring writes "Since the Vi version of this question was both interesting and popular, let's hear from the other end of the spectrum. What are your favorite tricks, macros, extensions, and techniques for any of the various Emacs? Myself, I like 'M-x dunnet' ;-)"
A favourite (works well on both Ubuntu and Debian (Score:4, Funny)
Re:A favourite (works well on both Ubuntu and Debi (Score:5, Funny)
I've found this very useful whenever I'm put in front of emacs
C-x C-c
sudo apt-get -y purge emacs
vi
XKCD (Score:5, Funny)
C-X M-C M-butterfly
Huh? (Score:3, Funny)
the Vi version of this question was both interesting and popular
Indeed. Probably because Vi is a popular and usable text editor (unlike Emacs).
Notepad tricks (Score:1, Funny)
Dear Slashdot,
For us Windows users, I would be very much interested in a similar topic for useful Notepad tricks.
Please take this seriously, and don't say that Alt-F4 (or Alt-F, X) is the best trick.
Yours sincerely,
Fred Anboy
Re:A big disappointment (Score:5, Funny)
it was posted from emacs, took a while to press all the keys.
Re:A favourite (works well on both Ubuntu and Debi (Score:5, Funny)
Hmm.. that didn't work well for me. I tried it, but I ended up in an editor with functionality that was one step above punch cards.
Re:Please Stop (Score:5, Funny)
Hopefully this is the last story before we start with "Stupid pet tricks"
Seeing as this is about emacs tricks, everything else is a subset. Including pet tricks.
Don't get me wrong: Emacs is a great operating system -- it lacks a good editor, though.
Check hard drive (Score:5, Funny)
It's often the case when you need to check the sectors on your disk for corruption, or just during hard drive testing. One of the coolest things that Emacs allows you to do is check your filesystem. For example on CentOS:
yum -y install emacs*
This will proceed to fill up your hard drive with tons of software until the filesystem is full.
(I kid, I kid)
Emacs Lisp (Score:5, Funny)
Lisp is a language that CompScis see for two months at University before leaving it behind. But if you really want to learn tricks with Emacs, you should learn Emacs Lisp - I have all sorts of specials, such as "move text to marker" and modes for handling internal IBM dump formats, that would be impossible in vi.
But if you want one quick piece of advice, here's one that should make someone smile
M-x hippie-expand RET
The ultimate, expand-this-thing-dammit-from-whatever-you-like completion trick.
Cheers,
Toby Haynes
The apocryphal command (Score:4, Funny)
Re:Not much of a trick... BUT... (Score:3, Funny)
So, you don't use Emacs to browse the web?
My Favorite... (Score:3, Funny)
Re:Please Stop (Score:5, Funny)
A whole series...
Useful(Stupid) things to say to get modded Insightful
Useful(Stupid) things to say to get modded Interesting
Useful(Stupid) things to say to get modded Funny
Useful(Stupid) things to say to get modded Troll
Useful(Stupid) things to say to get modded Redundant
Useful(Stupid) things to say to get modded Flamebate
Useful(Stupid) things to say to get modded Overrated
Useful(Stupid) things to say to get modded Stupid
Useful(Stupid) things to say to get modded Useful
Re:The apocryphal command (Score:1, Funny)
I know that man, I am his boss now. Imagine had he used vim, like me...
trying to figure something out (Score:5, Funny)
I like emacs but I'm not ready to change over to it 100% yet.
Is there a way to dual boot between Vista and emacs?
The old Emacs vs Vi story (Score:5, Funny)
I asked my email-pal: "UNIX or Windoze?". He replied "UNIX". I said "Ah...me too!".
I asked my email-pal: "Linux or AIX?". He said "Linux, of course". I said "Me too".
I asked him: "Emacs or vi". He replied "Emacs". I said "Me too. Small world."
I asked him: "GNU Emacs or XEmacs?", and he said "GNU Emacs". I said "oh, me too."
I asked him "GNU Emacs 19 or GNU Emacs 20"? and he said "GNU Emacs 19". I said "oh, me too."
I asked him, "GNU Emacs 19.29 or GNU Emacs 19.34", and he replied "GNU Emacs 19.29". I said "DIE YOU OBSOLETE NOGOOD SOCIALLY MALADJUSTED CELIBATE COMMIE FASCIST DORK!", and never emailed him again.
From an old slashdot [slashdot.org] story
Re:What is next ? (Score:5, Funny)
(Stupid) Useful Chat-up Lines
hey, sexy mama. wanna kill all the humans?
Re:A favourite (works well on both Ubuntu and Debi (Score:4, Funny)
Re:Huh? (Score:4, Funny)
I don't think cat+sed has any money. Plus, you'd have to prove damages.
Re:Huh? (Score:5, Funny)
Emacs has a text editor now?
Re:Favorite Acronym (Score:5, Funny)
It's a long time since Emacs has really been slow, but the jokes have long memories.
Performance jokes are never garbage collected -- it would take too many cycles.
Performance jokes are never garbage collected -- there's always a weak reference to them.
I'll be here all week... or until tuesday if the alternate pickup schedule is in effect due to holiday or inclement weather.
Mod me everything! (Score:5, Funny)
Useful(Stupid) things to say to get modded Insightful
Useful(Stupid) things to say to get modded Interesting
Useful(Stupid) things to say to get modded Funny
Useful(Stupid) things to say to get modded Troll
Useful(Stupid) things to say to get modded Redundant
Useful(Stupid) things to say to get modded Flamebate
Useful(Stupid) things to say to get modded Overrated
Useful(Stupid) things to say to get modded Stupid
Useful(Stupid) things to say to get modded Useful
Re:Please Don't Stop (Score:5, Funny)
'... is there any reason the VIM story ran first than the Emacs one?'
Emacs was still loading when it came time to run the story.
Re:XKCD (Score:1, Funny)
C-C-C-COMBO BREAKER!
emacs replies... (Score:5, Funny)
What are your favorite tricks?
Why do you say what are my favorite tricks?
Re:The old Emacs vs Vi story (Score:3, Funny)
As the original post hints, this is an adaptation of and old Emo Phillips bit. [stanford.edu]
I was walking across a bridge one day, and I saw a man standing on the edge, about to jump off. So I ran over and said "Stop! don't do it!"
"Why shouldn't I?" he said.
I said, "Well, there's so much to live for!"
He said, "Like what?"
I said, "Well...are you religious or atheist?"
He said, "Religious."
I said, "Me too! Are you christian or buddhist?"
He said, "Christian."
I said, "Me too! Are you catholic or protestant?"
He said, "Protestant."
I said, "Me too! Are you episcopalian or baptist?"
He said, "Baptist!"
I said,"Wow! Me too! Are you baptist church of god or baptist church of the lord?"
He said, "Baptist church of god!"
I said, "Me too! Are you original baptist church of god, or are you reformed baptist church of god?"
He said,"Reformed Baptist church of god!"
I said, "Me too! Are you reformed baptist church of god, reformation of 1879, or reformed baptist church of god, reformation of 1915?"
He said, "Reformed baptist church of god, reformation of 1915!"
I said, "Die, heretic scum", and pushed him off.
Re:Please Don't Stop (Score:5, Funny)
So by the next week we may the OpenOffice tricks?
Re:vi is for building emacs (Score:3, Funny)
I was talking about vi, I didn't know about vim to be honest. On Linux on my computer vi is aliased to vim but not on our Solaris servers at Berkeley.
Also, a fun related quote from one of the professors here, Paul Hilfinger: