JS folding code added (dirty commit)
This commit is contained in:
parent
8fc104b63b
commit
7da72daa60
2
TODO.org
2
TODO.org
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue