This is my current .emacs file. As you can see it’s got lots of goodies – indentation styles when editing code, jumping between parentheses/if/endif keywords, special key-mappings, custom search commands and much more 🙂
Emacs
Emacs tips and tricks
Setting emacs styles for different file types/extensions
Sometimes you want to open in Emacs a source code file, and you want to see it formatted nicely (e.g. as you would see a .c or .java file) but the file has some totally different file extension. In my example I wanted to view a MQL file (specialized programming language for trading), whose syntax […]
Fixing wrong Shift+Numpad (keypad) behaviour in Emacs
I struggled for a about an hour today with S-kp-home trying to bind it to something that would work properly in emacs (i.e select the text between cursor and start of line) before I figured out that although the problem manifested itself in Emacs, it is really due to the way Xwindows maps the Shift+Home/End… […]
Emacs wrap lines (disable/enable with toggle-truncate-lines)
Wrapping lines in emacs can be a real pain (fe.g. or programmers) or exactly what you want, for example if you’re writing the text of an email. At any rate it’s nice to know how to turn line wrap on and off in emacs – if anything every now and then you’d accidentally press the […]
How to enable/disable word wrap in emacs?
To enable (or disable) word wrap (a.k.a. “line wrapping”) in emacs press the M-x key (usually Alt-X on PC’s) and then in the emacs minibuffer type: toggle-truncate-lines <RET> The ‘<RET>’ means that you need to press the Enter key after you have typed “toggle-truncate-lines” in the emacs mini buffer. This will toggle the behaviour for […]
Make emacs grep/grep-find ignore .svn directories
Emacs grep and grep-find command used to work great for me until I started working with SVN and all those .svn directories started popping up in my emacs grep searches… So how can we make the emacs grep-find command ignore all the .svn directories? Being mostly a “git” guy, and having been recently introduced to […]
How to use emacs to replace Mac carriage returns (the ^M line endings, and that includes even the “stubborn” ones!)…
The below information was shamelessly copied, word for word, from http://mike.kruckenberg.com 🙂 Changing end-of-line Mode in Emacs (replaces ^M line return) Every now and then I run into this. I export CSV data from Excel and find that when trying to use it in other places the line-returns aren’t quite right and unix tools like […]