Live data from Hacker News

Things I wish they told you about Emacs

news.ycombinator.com

11–20 of 32 posts

Re: Things I wish they told you about Emacs

#12
post #10
post #4

Earlier quoted context omitted.

I don't use customize either, but there are very few things^1 that will be put in it without you explicitly customizing the variable and choosing to save it. So rather than typing elisp code out by hand, you can use the more user-friendly interface to set a variable. If you're -- for example -- version controlling your init file and you use customize, you want to have your customize block version controlled. [1] The…

Customize.el is not only about saving on keystrokes from elisp code, but it is highly discoverable, and importantly, type safe. If you need to put some wacky cons shenanigans to define your font locking rules or whatever, all that is taken care of you in customize. I don't put the output customize.el under version control since I vary my settings somewhat from machine to machine, and I use version control to sync my…

Customize is also fast. A few years ago I converted 15 years of elisp cruft over to customize and sped my emacs start up by roughly 10x (used to take about 10 seconds).

Re: Things I wish they told you about Emacs

#13
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

I had a coworker that'd cringe every time I used it because I used that shell instead of one of Emacs's other shell modes.

Re: Things I wish they told you about Emacs

#14
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

For more than one shell buffer you can also do C-u M-x shell and then press enter (for the default buffer name) if you can live with shell-2, shell-3, etc. for your shell buffers' names. Saves the time for renaming.

Re: Things I wish they told you about Emacs

#16
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

You don't need to rename it. When you want to start a new shell, go C-u M-x shell and it will ask you how to name the new shell you just created, with default being shell.

Re: Things I wish they told you about Emacs

#17
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

See also: M-x ansi-term

Re: Things I wish they told you about Emacs

#18
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

Just curious, why do you prefer shell instead of term or ansi-term?

Both of those other modes have better support for curses applications and act closer to an actual terminal emulator than M-x shell does.

Also, if you like term, you can use the "multi-term" script (http://www.emacswiki.org/emacs/multi-term.el), which will automatically open a new terminal window with M-x multi-term, and you can cycle through your open terminals with M-x multi-term-next and multi-term-prev

Re: Things I wish they told you about Emacs

#19
post #15
post #8

Emacs is nice. But it's also a fractal of bad usability design. :/

I honestly think the defaults were made bad on purpose to force people to learn how to configure it.

Like apple does with the angles of the laptop screen? makes sense

http://www.forbes.com/sites/carminegallo/2012/06/14/why-the-...

Post reply on HN