emacs:emacs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| emacs:emacs [2015/09/12 18:55] – [Switch between cc/h files] 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. | ||
| Line 40: | Line 43: | ||
| (require ' | (require ' | ||
| (global-set-key (kbd " | (global-set-key (kbd " | ||
| + | </ | ||
| + | |||
| + | =====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.1442076944.txt.gz · Last modified: by deva
