Change template file prefix from @@ to __
This commit is contained in:
parent
c5a6fa1e3b
commit
ff716616b6
48 changed files with 44 additions and 44 deletions
|
@ -10,77 +10,77 @@
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(add-template! "/\\.gitignore$" "@@" 'gitignore-mode)
|
(add-template! "/\\.gitignore$" "__" 'gitignore-mode)
|
||||||
|
|
||||||
;; C/C++
|
;; C/C++
|
||||||
(add-template! "/Makefile$" "@@" 'makefile-gmake-mode)
|
(add-template! "/Makefile$" "__" 'makefile-gmake-mode)
|
||||||
(add-template! "/main\\.\\(cc\\|cpp\\)$" "@@main.cpp" 'c++-mode)
|
(add-template! "/main\\.\\(cc\\|cpp\\)$" "__main.cpp" 'c++-mode)
|
||||||
(add-template! "/win32_\\.\\(cc\\|cpp\\)$" "@@winmain.cpp" 'c++-mode)
|
(add-template! "/win32_\\.\\(cc\\|cpp\\)$" "__winmain.cpp" 'c++-mode)
|
||||||
(add-template! "\\.\\([Hh]\\|hpp\\)$" "@@.h" 'c++-mode)
|
(add-template! "\\.\\([Hh]\\|hpp\\)$" "__.h" 'c++-mode)
|
||||||
(add-template! "\\.\\(cc\\|cpp\\)$" "@@.cpp" 'c++-mode)
|
(add-template! "\\.\\(cc\\|cpp\\)$" "__.cpp" 'c++-mode)
|
||||||
(add-template! "\\.c$" "@@.c" 'c-mode)
|
(add-template! "\\.c$" "__.c" 'c-mode)
|
||||||
|
|
||||||
;; Elisp
|
;; Elisp
|
||||||
(add-template! "\\.emacs\\.d/.+\\.el$" "@@initfile" 'emacs-lisp-mode)
|
(add-template! "\\.emacs\\.d/.+\\.el$" "__initfile" 'emacs-lisp-mode)
|
||||||
(add-template! "\\.emacs\\.d/private/\\(snippets\\|templates\\)/.+$" "@@" 'snippet-mode)
|
(add-template! "\\.emacs\\.d/private/\\(snippets\\|templates\\)/.+$" "__" 'snippet-mode)
|
||||||
|
|
||||||
;; Go
|
;; Go
|
||||||
(add-template! "/main\\.go$" "@@main.go" 'go-mode t)
|
(add-template! "/main\\.go$" "__main.go" 'go-mode t)
|
||||||
(add-template! "\\.go$" "@@.go" 'go-mode)
|
(add-template! "\\.go$" "__.go" 'go-mode)
|
||||||
|
|
||||||
;; HTML
|
;; HTML
|
||||||
(add-template! "\\.html$" "@@.html" 'web-mode)
|
(add-template! "\\.html$" "___html" 'web-mode)
|
||||||
|
|
||||||
;; Java
|
;; java
|
||||||
(add-template! "/src/.+/.+\\.java$" "@@" 'java-mode)
|
(add-template! "/src/.+/.+\\.java$" "__" 'java-mode)
|
||||||
(add-template! "/main\\.java$" "@@main" 'java-mode)
|
(add-template! "/main\\.java$" "__main" 'java-mode)
|
||||||
(add-template! "/build\\.gradle$" "@@build.gradle" 'android-mode)
|
(add-template! "/build\\.gradle$" "__build.gradle" 'android-mode)
|
||||||
|
|
||||||
;; Javascript
|
;; Javascript
|
||||||
(add-template! "\\.lbaction/.+/Info.plist$" "@@Info.plst" 'lb6-mode)
|
(add-template! "\\.lbaction/.+/Info.plist$" "__Info.plst" 'lb6-mode)
|
||||||
(add-template! "\\.lbaction/.+/\\(default\\|suggestions\\)\\.js$" "@@default.js" 'lb6-mode)
|
(add-template! "\\.lbaction/.+/\\(default\\|suggestions\\)\\.js$" "__default.js" 'lb6-mode)
|
||||||
(add-template! "/package\\.json$" "@@package.json" 'json-mode)
|
(add-template! "/package\\.json$" "__package.json" 'json-mode)
|
||||||
(add-template! "\\.\\(json\\|jshintrc\\)$" "@@" 'json-mode)
|
(add-template! "\\.\\(json\\|jshintrc\\)$" "__" 'json-mode)
|
||||||
|
|
||||||
;; Lua
|
;; Lua
|
||||||
(add-template! "/main\\.lua$" "@@main.lua" 'love-mode)
|
(add-template! "/main\\.lua$" "__main.lua" 'love-mode)
|
||||||
(add-template! "/conf\\.lua$" "@@conf.lua" 'love-mode)
|
(add-template! "/conf\\.lua$" "__conf.lua" 'love-mode)
|
||||||
|
|
||||||
;; Markdown
|
;; Markdown
|
||||||
(add-template! "\\.md$" "@@" 'markdown-mode)
|
(add-template! "\\.md$" "__" 'markdown-mode)
|
||||||
(add-template! "/_posts/.+\\.md$" "@@jekyll-post" 'markdown-mode)
|
(add-template! "/_posts/.+\\.md$" "__jekyll-post" 'markdown-mode)
|
||||||
(add-template! "/_layouts/.+\\.html$" "@@jekyll-layout.html" 'web-mode)
|
(add-template! "/_layouts/.+\\.html$" "__jekyll-layout.html" 'web-mode)
|
||||||
|
|
||||||
;; PHP
|
;; PHP
|
||||||
(add-template! "\\.class\\.php$" "@@.class.php" 'php-mode)
|
(add-template! "\\.class\\.php$" "__.class.php" 'php-mode)
|
||||||
(add-template! "\\.php$" "@@" 'php-mode)
|
(add-template! "\\.php$" "__" 'php-mode)
|
||||||
|
|
||||||
;; Python
|
;; Python
|
||||||
;; (add-template! "tests?/test_.+\\.py$" "@@" 'nose-mode)
|
;; (add-template! "tests?/test_.+\\.py$" "__" 'nose-mode)
|
||||||
;; (add-template! "/setup\\.py$" "@@setup.py" 'python-mode)
|
;; (add-template! "/setup\\.py$" "__setup.py" 'python-mode)
|
||||||
(add-template! "\\.py$" "@@" 'python-mode)
|
(add-template! "\\.py$" "__" 'python-mode)
|
||||||
|
|
||||||
;; Ruby
|
;; Ruby
|
||||||
(add-template! "/\\.rspec$" "@@.rspec" 'rspec-mode)
|
(add-template! "/\\.rspec$" "__.rspec" 'rspec-mode)
|
||||||
(add-template! "/spec_helper\\.rb$" "@@helper" 'rspec-mode t)
|
(add-template! "/spec_helper\\.rb$" "__helper" 'rspec-mode t)
|
||||||
(add-template! "_spec\\.rb$" "@@" 'rspec-mode t)
|
(add-template! "_spec\\.rb$" "__" 'rspec-mode t)
|
||||||
(add-template! "/Rakefile$" "@@Rakefile" 'enh-ruby-mode t)
|
(add-template! "/Rakefile$" "__Rakefile" 'enh-ruby-mode t)
|
||||||
(add-template! "/Gemfile$" "@@Gemfile" 'enh-ruby-mode t)
|
(add-template! "/Gemfile$" "__Gemfile" 'enh-ruby-mode t)
|
||||||
(add-template! "\\.gemspec$" "@@.gemspec" 'enh-ruby-mode t)
|
(add-template! "\\.gemspec$" "__.gemspec" 'enh-ruby-mode t)
|
||||||
(add-template! "/lib/.+\\.rb$" "@@module" 'enh-ruby-mode t)
|
(add-template! "/lib/.+\\.rb$" "__module" 'enh-ruby-mode t)
|
||||||
(add-template! "\\.rb$" "@@" 'enh-ruby-mode)
|
(add-template! "\\.rb$" "__" 'enh-ruby-mode)
|
||||||
|
|
||||||
;; Rust
|
;; Rust
|
||||||
(add-template! "/Cargo.toml$" "@@Cargo.toml" 'rust-mode)
|
(add-template! "/Cargo.toml$" "__Cargo.toml" 'rust-mode)
|
||||||
(add-template! "/main\\.rs$" "@@main.rs" 'rust-mode)
|
(add-template! "/main\\.rs$" "__main.rs" 'rust-mode)
|
||||||
|
|
||||||
;; SCSS
|
;; SCSS
|
||||||
(add-template! "/master\\.scss$" "@@master.scss" 'scss-mode)
|
(add-template! "/master\\.scss$" "__master.scss" 'scss-mode)
|
||||||
(add-template! "/normalize\\.scss$" "@@normalize.scss" 'scss-mode)
|
(add-template! "/normalize\\.scss$" "__normalize.scss" 'scss-mode)
|
||||||
(add-template! "\\.scss$" "@@" 'scss-mode)
|
(add-template! "\\.scss$" "__" 'scss-mode)
|
||||||
|
|
||||||
;; Shell scripts
|
;; Shell scripts
|
||||||
(add-template! "\\.z?sh$" "@@" 'sh-mode)
|
(add-template! "\\.z?sh$" "__" 'sh-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
(provide 'core-auto-insert)
|
(provide 'core-auto-insert)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue