在emacs中打開一個termial,並move到currentbuffer所在的目錄

把下面的代碼加到你的.emacs裏。在把這個方程綁定到一個你順手的鍵。
(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")
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章