JS folding code added (dirty commit)

This commit is contained in:
Sameer Rahmani 2013-03-05 21:13:36 +03:30
parent 8fc104b63b
commit 7da72daa60
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
* High Priority
define prefix key map for language plugins
define a prefix keymap for kuso-mode so some plugins can use that safely
byte compile the installed .d directory using emacs --batch --eval '(byte-recompile-directory ".")'
* Normal Priority
Remove unkown filetypes from filelist in load-dir
Add some option for user to choose between liceenses

View File

@ -191,3 +191,11 @@
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
;; JS folding
(add-hook 'js-mode-hook
(lambda ()
;; Scan the file for nested code blocks
(imenu-add-menubar-index)
;; Activate the folding mode
(hs-minor-mode t)))