From 819b557f9ec286f3e9a86d120ac94b9472523ce2 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Fri, 26 Aug 2016 22:22:17 +0800 Subject: [PATCH] emacs - enable yasnippet global mode --- emacs.d/config.org | 7 ++++++- study-note.org | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 84e80fd..f1272c8 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1849,7 +1849,12 @@ irony-company *** yasnippet #+BEGIN_SRC emacs-lisp :tangle yes :results silent (use-package yasnippet - :ensure t) + :ensure t + :defer t + :config + (add-hook 'prog-mode-hook #'yas-minor-mode) + ;; (yas-global-mode 1) + ) #+END_SRC *** semantic diff --git a/study-note.org b/study-note.org index 61823e7..d9543ab 100644 --- a/study-note.org +++ b/study-note.org @@ -89,6 +89,10 @@ Or : ==4: cc: 3 : ==5: dd: 4 +*** Special Variable +See special variable in perl [[http://perldoc.perl.org/perlvar.html][perlvar]], or =perldoc perlvar= +- =$.= Current line number + ** gnuplog 1. normal -- 2.11.0