(require 'autoinsert) (auto-insert-mode) ;;; Adds hook to find-files-hook (setq auto-insert-directory "~/.mytemplates/") (setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion (define-auto-insert "/.pl" "my-perl-template.pl")
在emacs中打開一個termial,並move到currentbuffer所在的目錄
把下面的代碼加到你的.emacs裏。在把這個方程綁定到一個你順手的鍵。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
learning perl(四) 正則表達式
冬瓜排骨汤
2020-07-08 03:33:23
apache mod_perl實現 url rewrite
smallfish_xy
2020-07-06 17:54:09
Windows 2003 下 SquirrelMail 的安裝
(一) 軟件下載: 1. 下載 squirrelmail-1.4.11.zip 地址:http://squirrelmail.org/ 2. 下載
asli33
2020-07-08 11:59:01
perl 正則表達式 匹配字符串 或邏輯
mark,備忘 #!/usr/local/bin/perl use strict; use warnings; my @data=qw( nihao wohao ); foreach(@data){
亓磊
2020-07-08 07:18:16
learning perl(一)標量 數組 哈希
冬瓜排骨汤
2020-07-08 03:33:23
快速打造一個在線編輯器
wzbob
2020-07-07 14:43:50
[轉載] Perl的內置變量(1)
DDGG
2020-07-07 10:08:06
[轉載] Perl的內置變量(2)
$- 當前頁可打印的行數,屬於Perl格式系統的一部分$! 根據上下文內容返回錯誤號或者錯誤串$” 列表分隔符$# 打印數字時默認的數字輸出格式$$ Perl解釋器的進
DDGG
2020-07-07 10:08:06
perl的helloworld
perl教程 http://www.cbi.pku.edu.cn/chinese/documents/perl/index.htm perl入門 h
kenneth
2020-07-07 05:34:41
兩種正則
firepresscn
2020-07-07 02:13:19
Perl 作爲命令行實用程序(轉)
leo19870625
2020-07-07 00:51:19
ubuntu安裝emacs
难得糊涂_不解释
2020-07-07 12:06:22
EMACs的helm筆記
C@SH
2020-07-07 10:29:56