From: Peng Li Date: Sat, 16 Jul 2016 14:59:45 +0000 (+0800) Subject: emacs - python template X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;ds=sidebyside;h=5bcb759b2420ab6720c9e6e04e5d5de20b3b2bfa;p=dotfiles.git emacs - python template --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 94d6e11..df7137a 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1997,20 +1997,28 @@ Set the environments vairables in compilation mode #+END_SRC *** Perl Auto Insert - Refer [[https://www.emacswiki.org/emacs/AutoInsertMode][AutoInsertMode]] Wiki - #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (eval-after-load 'autoinsert '(define-auto-insert '("\\.pl\\'" . "Perl skeleton") '( - "Description: " + "Empty" "#!/usr/bin/perl -w" \n \n - "use strict;" \n \n + "use strict;" > \n \n + > _ ))) +#+END_SRC +*** Python template +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (eval-after-load 'autoinsert + '(define-auto-insert '("\\.\\(py\\)\\'" . "Python skeleton") + '( + "Empty" + "#import os,sys" \n + \n \n + ))) #+END_SRC *** Elisp