projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
afa02e1
)
emacs - add keywords for perl mode
author
Peng Li
<seudut@gmail.com>
Sun, 17 Jul 2016 08:55:58 +0000
(16:55 +0800)
committer
Peng Li
<seudut@gmail.com>
Sun, 17 Jul 2016 08:55:58 +0000
(16:55 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
9406601
..
96b1a87
100644
(file)
--- 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
)))
#+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
*** 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