- Notifications
You must be signed in to change notification settings - Fork3
Enhance filetype major mode
NotificationsYou must be signed in to change notification settings
emacs-php/magic-filetype.el
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Enhance filetype major mode
SeeCask Installation. put into your ownCask file.
SeeGetting Started - MELPA.M-x package-install and typemagic-filetype.
SeeEl-Get #Installation. put into your owninit.el file.
(el-get-bundle magic-filetype)put into your own.emacs file (init.el)
(magic-filetype-enable-vim-filetype)
for example…
(add-to-list'auto-mode-alist `("/.fooconfig\\'". ,(magic-filetype-major-mode-of'javascript)))(add-to-list'auto-mode-alist `("/FooPack.lock\\'". ,(magic-filetype-major-mode-of'json)))
If you write the setting to.emacs, you can be briefly defined as follows.
(defalias'major-mode-of'magic-filetype-major-mode-of)(add-to-list'auto-mode-alist `("/\\.mysql\\'". ,(major-mode-of'mysql)))
M-x magic-filetype-major-mode-from-language-name
M-x magic-filetype-reload-major-mode
(require'magic-filetype')(completing-read"Input major mode:" (magic-filetype-collect-major-modes))
About
Enhance filetype major mode
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.