emacs - add keywords for perl mode
authorPeng Li <seudut@gmail.com>
Sun, 17 Jul 2016 08:55:58 +0000 (16:55 +0800)
committerPeng Li <seudut@gmail.com>
Sun, 17 Jul 2016 08:55:58 +0000 (16:55 +0800)
emacs.d/config.org

index 9406601..96b1a87 100644 (file)
@@ -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