From: Peng Li Date: Sun, 17 Jul 2016 08:55:58 +0000 (+0800) Subject: emacs - add keywords for perl mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=e82781f45fb749ec5ad1b2030f4796c862a3a636;hp=afa02e113c2b6ccfda472665e0e739474135a85a;p=dotfiles.git emacs - add keywords for perl mode --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 9406601..96b1a87 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1911,6 +1911,15 @@ Refer [[https://www.emacswiki.org/emacs/AutoInsertMode][AutoInsertMode]] Wiki ))) #+END_SRC +*** Keywords +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (font-lock-add-keywords 'cperl-mode + '(("\\(say\\)" . font-lock-function-name-face))) + + (font-lock-add-keywords 'Man-mode + '(("\\(NAME\\)" . font-lock-function-name-face))) +#+END_SRC + *** Run Perl Change the compile-command to set the default command run when call =compile= Mapping =s-r= (on Mac, it's =Command + R= to run the script. Here =current-prefix-arg= is set