Re: [OT]: Using Emacs
On Tue, Sep 09, 2014 at 11:46:21PM +0100, Dominik Vogt wrote: On Tue, Sep 09, 2014 at 10:47:19PM +0100, Thomas Adam wrote: I ... was wondering what others on this list do to make their lives easier Automatic removal of trailing whitespace in xemacs (see attachment): Ah. This is wonderful indeed. Thank you, Dominik! I'll mess about with these but they're looking pretty good. If I have to do any special hand-holding for them I'll let you know. I've not forgotten about the whitespace git hook either, I'll get to this on Friday. Thanks again. -- Thomas Adam -- Deep in my heart I wish I was wrong. But deep in my heart I know I am not. -- Morrissey (Girl Least Likely To -- off of Viva Hate.)
Re: [OT]: Using Emacs
Thomas Adam tho...@fvwm.org writes: Hi all, I know this is slightly off-topic, but for various reasons I'm having to use Emacs, and was wondering what others on this list do to make their lives easier with things like: * C development; * GDB; * Make/compilation It's important to do make while inside Emacs, there are benefits to working that way. Bind some keys to invoke the compiler and find errors, I do: (define-key global-map [(f1)] 'compile) (define-key global-map [(f2)] 'next-error) (define-key global-map [(S-f2)] 'previous-error) Anything fvwm-specific as well would be welcomed. In the fvwm source directory I keep a file for Emacs that automatically enforces fvwm project rules. The name of the file is .dir-locals.el and it's contents: ((nil . ((indent-tabs-mode . t) (fill-column . 80))) (c-mode . ((c-basic-offset . 8) (c-indent-level . 8) (indent-tabs-mode . t Emacs reads .dir-locals.el and applies it's rules in all sub-directories. -- Dan Espen