Computer

(emacs) start mode automatically

steloflute 2014. 11. 14. 23:30

To start the mode automatically in `foo-mode', add the following to your init file:

(add-hook 'foo-mode-hook #'rainbow-delimiters-mode)

To start the mode automatically in most programming modes (Emacs 24 and above):

(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)