emacs:emacs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
emacs:emacs [2015/09/12 18:41] – created deva | emacs:emacs [2015/09/12 20:24] (current) – [Show whitespace] deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Emacs====== | ======Emacs====== | ||
+ | |||
+ | =====Set up custom lisp path===== | ||
+ | <code lisp> | ||
+ | (add-to-list ' | ||
+ | </ | ||
=====Show trailing whitespace===== | =====Show trailing whitespace===== | ||
Line 5: | Line 10: | ||
<code lisp> | <code lisp> | ||
(custom-set-variables | (custom-set-variables | ||
- | ' | + | ' |
+ | ) | ||
</ | </ | ||
Line 21: | Line 27: | ||
Add the following lines to the '' | Add the following lines to the '' | ||
<code lisp> | <code lisp> | ||
- | (add-to-list | + | (require |
- | (load-file " | + | |
- | (load-file " | + | |
(autoload ' | (autoload ' | ||
Line 32: | Line 36: | ||
(smart-tabs-insinuate 'c 'c++ 'java ' | (smart-tabs-insinuate 'c 'c++ 'java ' | ||
</ | </ | ||
- | |||
=====Switch between cc/h files===== | =====Switch between cc/h files===== | ||
- | Switch between the header and implementation using Alt-o: | + | Switch between the header and implementation using Alt-o. |
+ | |||
+ | Download [[http:// | ||
<code lisp> | <code lisp> | ||
(require ' | (require ' | ||
Line 40: | Line 45: | ||
</ | </ | ||
+ | =====Show whitespace===== | ||
+ | Download [[http:// | ||
+ | |||
+ | Use it whenever in c++ mode: | ||
+ | <code lisp> | ||
+ | (require ' | ||
+ | (add-hook ' | ||
+ | </ | ||
+ | |||
+ | Use sane colors: | ||
+ | <code lisp> | ||
+ | (set-face-attribute ' | ||
+ | (set-face-attribute ' | ||
+ | (set-face-attribute ' | ||
+ | (set-face-attribute ' | ||
+ | </ | ||
+ | |||
+ | Disable newlines and wierd rendering of long lines: | ||
+ | <code lisp> | ||
+ | (custom-set-variables | ||
+ | ' | ||
+ | ) | ||
+ | </ |
emacs/emacs.txt · Last modified: 2015/09/12 20:24 by deva