
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 tips and tricks
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 🙂
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 […]
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… […]
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 […]
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 […]
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 […]
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 […]