From e82781f45fb749ec5ad1b2030f4796c862a3a636 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 17 Jul 2016 16:55:58 +0800 Subject: [PATCH] emacs - add keywords for perl mode --- emacs.d/config.org | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.11.0