6eab954afe
Helm seems to treat "!" specially in pattern matching, so having a ! in the pattern string when traversing directories is problematic. This change fixes #2737, because as far as I can tell "+" has no special meaning in a helm pattern. Of course, we can choose a different character, but I'm fond of "+" as representing "more layers here".
27 lines
822 B
EmacsLisp
27 lines
822 B
EmacsLisp
(setq lua-packages
|
|
'(
|
|
company
|
|
flycheck
|
|
lua-mode
|
|
))
|
|
|
|
(defun lua/post-init-flycheck ()
|
|
(add-hook 'lua-mode-hook 'flycheck-mode))
|
|
|
|
(defun lua/init-lua-mode ()
|
|
(use-package lua-mode
|
|
:defer t
|
|
:mode ("\\.lua\\'" . lua-mode)
|
|
:interpreter ("lua" . lua-mode)
|
|
:config
|
|
(progn
|
|
(setq lua-indent-level 2
|
|
lua-indent-string-contents t)
|
|
(evil-leader/set-key-for-mode 'lua-mode "md" 'lua-search-documentation)
|
|
(evil-leader/set-key-for-mode 'lua-mode "msb" 'lua-send-buffer)
|
|
(evil-leader/set-key-for-mode 'lua-mode "msf" 'lua-send-defun)
|
|
(evil-leader/set-key-for-mode 'lua-mode "msl" 'lua-send-current-line)
|
|
(evil-leader/set-key-for-mode 'lua-mode "msr" 'lua-send-region))))
|
|
|
|
(defun lua/post-init-company ()
|
|
(add-hook 'lua-mode-hook 'company-mode))
|