Live data from Hacker News

Emacs, naked

bzg.fr

81–90 of 201 posts

Re: Emacs, naked

#81
For some who works with split windows, i don't like the idea to trim the space and hide the status-bar, but everything else is great.

Re: Emacs, naked

#82
post #40

Earlier quoted context omitted.

Slow emacs startup isn't a problem thanks to the new emacs-server stuff. Running emacs with the "--daemon" flag will cause it to do initialization, fork into the background, and become persistent; now edit files using commands like "emacsclient $filename". Eamcsclient will connect to the daemonized emacs server and have it open $filename, bringing it forward either in an existing frame or (using the "-nw" or "-nc" fl…

There are serious problems trying to run it as a server on Mac OS X. Basically it's not a real option on this platofrm.

I run Emacs on Mac OS X as a server. What I don't do is "emacs --daemon". I launch Emacs and then "M-x server-start RET". This seems to avoid any weird issues.

I use the "ec" script show here: http://emacsformacosx.com/tips

Re: Emacs, naked

#83
post #7

Ì wonder if some Emacs people intend to migrate to LightTable in a few years?

I love the concept of LightTable, basically a new Emacs with a redesigned architecture and plugin system. I don't love that it's written inside a WebView. I don't love that the best cross-platform graphics library we have is the mess we call HTML+CSS+JS. I don't love that I have to compile Clojure to JavaScript and run it inside a WebView in order to do anything to customize it. On the other hand, I love the simplici…

If you're on a mac, the railwaycat port of emacs has pixel scrolling with the trackpad/mouse out-of-the-box. It's not as crystal smooth as you'd hope for, but it's decent.

http://snag.gy/g8NIF.jpg

Re: Emacs, naked

#84
post #83

Earlier quoted context omitted.

I love the concept of LightTable, basically a new Emacs with a redesigned architecture and plugin system. I don't love that it's written inside a WebView. I don't love that the best cross-platform graphics library we have is the mess we call HTML+CSS+JS. I don't love that I have to compile Clojure to JavaScript and run it inside a WebView in order to do anything to customize it. On the other hand, I love the simplici…

If you're on a mac, the railwaycat port of emacs has pixel scrolling with the trackpad/mouse out-of-the-box. It's not as crystal smooth as you'd hope for, but it's decent. http://snag.gy/g8NIF.jpg

Oooh, neat! Might have to check it out, thanks!

Re: Emacs, naked

#85
post #53

Earlier quoted context omitted.

I try out emacs every few years. Every time, I get discouraged whenever I attempt to do something simple (change the theme, etc) by the amount of configuration necessary. I may try your repo, since it seems to have a lot of stuff already configured. The other thing is that Emacs is really slow to start as soon as you have a few plugins, compared to vim.

The slow emacs startup problem can be mitigated by lazily loading custom modes as much as possible. The two big things to use here are autoload (instead of require) and eval-after-load. On my machine, a vanilla emacs startup is ~70ms, and one with my fully-loaded .emacs is ~240ms. Still not as fast as I would like, but not terrible. (You can benchmark emacs startup from the command line with "time emacs --eval '(save…

Using the Customize interface also helps. Variables that are customized go in a big list and don't get set individually, nor do they require their library to be loaded before they've been set.

A few years ago I went through my 10 years of accumulated .emacs cruft and switched everything I could to customize, and everything I couldn't to the technique you describe. I sped my emacs startup time from eight seconds down to one.

On top of that I switched to using emacsclient which makes startup instant.

Re: Emacs, naked

#86
post #10

nice stuff. My .emacs keeps the mode line, which I like, but turns off the scrollbars and menu bars, and sets a wide fringe (though not quite as wide as shown). I don't like text jammed right up to the edge of the window. Anyone know how to achieve a "fringe" on the top and bottom? And also how to do it in xterm windows?

Just discovered, you can create a "fringe" in xterm by the -b option:

  -b number
      This option specifies the size of the inner border (the
      distance between the outer edge of the characters and the
      window border) in pixels.  That is the vt100 internalBorder
      resource.  The default is ``2''.

Re: Emacs, naked

#87
post #78
post #74

Earlier quoted context omitted.

I've been running emacs server for at least a year or two now on OSX using homebrew. "$(brew --prefix)/opt/emacs/Emacs.app/Contents/MacOS/Emacs" --daemon

If you accidentally quit the Emacs GUI, does it still kill the daemon?

If you run it with --daemon, the server process doesn't create a frame of its own, but only listens for connections from emacsclient instances; IIRC it also rebinds C-x C-c to delete-frame (also available at C-x 5 0), and the daemon process stays alive through everything short of M-x kill-emacs or similar.

Re: Emacs, naked

#88
post #74

Earlier quoted context omitted.

There are serious problems trying to run it as a server on Mac OS X. Basically it's not a real option on this platofrm.

I've been running emacs server for at least a year or two now on OSX using homebrew. "$(brew --prefix)/opt/emacs/Emacs.app/Contents/MacOS/Emacs" --daemon

I'm not very familiar with OS X, and I've had a lot of trouble finding the magic invocation that'll get an Emacs daemon running with the same behavior to which I'm accustomed on Windows and Linux. This looks like it should do the trick, thanks! Now if only I could get emacsclient to behave sensibly in the dock, I'd really be cooking with fire...

Re: Emacs, naked

#89
post #34

Earlier quoted context omitted.

An excellent point; having a command line in your editor is something whose value is hard to recognize until you've tried it, and hard to overstate once you're used to it. It might, though, be worth using the typical Emacs nomenclature for key sequences, i.e. M-x where you use 'MX' and (assuming your Command key is bound to Meta, as is ordinary for OS X Emacs users) M-. where you use 'CMD-.' -- your choice of preferr…

I changed this because I found M-x to be really really difficult to type. It may be my hands or my fingers, but I have a hard time doing that key sequence correctly. Apart from that I think that you're absolutely right. I shouldn't have advertised this as it will probably confuse users.

Well, there's nothing wrong with rebinding M-x; that key combination requires a lot of hand scrunching, which can get uncomfortable after a while. Nothing wrong with talking about it, either! I'd just recommend describing it in accord with the conventions for Emacs key sequences, is all.

Re: Emacs, naked

#90
post #61
post #57

Earlier quoted context omitted.

Very interesting thing you've got going there, and I love the visual aesthetic. Two quick tips that you probably already know, but just in case it's useful to you or someone else: * Emacs can wrap lines at word boundaries, while intelligently preserving/extending indentation (something like this: https://gist.github.com/anonymous/8581161 ) * If you're using emacs on the mac, it's worth taking a look at the railwaycat…

I think you need to "brew tap railwaycat/emacsmacport" first to install that.

I built it from scratch, only using Brew to install the necessary image format libraries, and that worked fine too.
Post reply on HN