(Stupid) Useful Emacs Tricks?
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' ;-)"
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
There, fixed that for me!
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
C-X M-C M-butterfly
Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
the Vi version of this question was both interesting and popular
Indeed. Probably because Vi is a popular and usable text editor (unlike Emacs).
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
it was posted from emacs, took a while to press all the keys.
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.
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.
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)
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
Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
I once knew a man that typed an emacs sequence, once locked in hidden, ancient papyri. Emacs conducted all of the research for his PhD, typed his dissertation, correctly formatted his bibliography (the most astounding feat of all), setup the defense with his advisory committee, presented and defended his thesis, printed, bound and submitted the dissertation.
Now if anyone makes a Firefox plugin making it possible to do the same in a web browser that would be friggin awesome.
So, you don't use Emacs to browse the web?
is M-x Viper \[esc]x eshell All the obscureness of vim combined with the bloat of emacs. Then I have lots of fun letting people borrow my computer and watch them get mad at my custom xmodmap while trying to figure out how to get to the "Start" menu because they don't know ratpoison.
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
Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
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?
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 story
(Stupid) Useful Chat-up Lines
hey, sexy mama. wanna kill all the humans?
Stop Computers/Cars Analogies on S
I started on punch cards, you insensitive clod!
One swallow does not a fellatrix make
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.
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
The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
'... 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.
Great minds think alike; fools seldom differ.
What are your favorite tricks?
Why do you say what are my favorite tricks?
Have gnu, will travel.
So by the next week we may the OpenOffice tricks?
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:
All your base are belong to Wii.