projects
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
emacs - python template
[dotfiles.git]
/
emacs.d
/
config.org
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
94d6e11
..
df7137a
100644
(file)
--- 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
#+END_SRC
*** Perl Auto Insert
-
Refer [[https://www.emacswiki.org/emacs/AutoInsertMode][AutoInsertMode]] Wiki
Refer [[https://www.emacswiki.org/emacs/AutoInsertMode][AutoInsertMode]] Wiki
-
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(eval-after-load 'autoinsert
'(define-auto-insert '("\\.pl\\'" . "Perl skeleton")
'(
(eval-after-load 'autoinsert
'(define-auto-insert '("\\.pl\\'" . "Perl skeleton")
'(
- "
Description:
"
+ "
Empty
"
"#!/usr/bin/perl -w" \n
\n
"#!/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
#+END_SRC
*** Elisp