Browse Source

Add lua, yaml modes

master
Riyyi 4 years ago
parent
commit
ce6b821bba
  1. 30
      .config/emacs/config.org

30
.config/emacs/config.org

@ -36,6 +36,8 @@
- [[#lsp][LSP]]
- [[#yasnippet][YASnippet]]
- [[#cc][C/C++]]
- [[#lua][Lua]]
- [[#yaml][YAML]]
- [[#php][PHP]]
- [[#prettify][Prettify]]
- [[#rss][RSS]]
@ -275,13 +277,13 @@ Install and configure packages.
(use-package evil-collection
:after evil
:custom
(evil-collection-company-use-tng nil)
(evil-collection-key-blacklist (list dot/leader-key dot/localleader-key
:config
(setq evil-collection-company-use-tng nil)
(setq evil-collection-key-blacklist (list dot/leader-key dot/localleader-key
dot/leader-alt-key dot/localleader-alt-key
"M-h" "M-j" "M-k" "M-l"))
(evil-collection-setup-minibuffer t)
:config (evil-collection-init))
(setq evil-collection-setup-minibuffer t)
(evil-collection-init))
(use-package evil-nerd-commenter
:defer t
@ -606,6 +608,21 @@ Language Server Protocol.
:config (push 'company-c-headers company-backends))
#+END_SRC
*** Lua
#+BEGIN_SRC emacs-lisp
(use-package lua-mode
:defer t
:config (setq lua-indent-level 4))
#+END_SRC
*** YAML
#+BEGIN_SRC emacs-lisp
(use-package yaml-mode
:defer t)
#+END_SRC
*** PHP
#+BEGIN_SRC emacs-lisp
@ -1405,6 +1422,7 @@ Evil command aliases.
;; Display fill column indicator
(add-hook 'prog-mode-hook 'display-fill-column-indicator-mode)
(add-hook 'text-mode-hook 'display-fill-column-indicator-mode)
;; Highlight parenthesis
(add-hook 'prog-mode-hook 'show-paren-mode)
@ -1796,7 +1814,7 @@ General.el ~leader key binds.
"t w" '(visual-line-mode :which-key "Toggle line wrapping")
;; Update packages
"u" '(auto-package-update-now :which-key "Update packages")
"U" '(auto-package-update-now :which-key "Update packages")
;; Window
"w" '(:ignore t :which-key "window")

Loading…
Cancel
Save