Browse Source

Add lua, yaml modes

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

32
.config/emacs/config.org

@ -36,6 +36,8 @@
- [[#lsp][LSP]] - [[#lsp][LSP]]
- [[#yasnippet][YASnippet]] - [[#yasnippet][YASnippet]]
- [[#cc][C/C++]] - [[#cc][C/C++]]
- [[#lua][Lua]]
- [[#yaml][YAML]]
- [[#php][PHP]] - [[#php][PHP]]
- [[#prettify][Prettify]] - [[#prettify][Prettify]]
- [[#rss][RSS]] - [[#rss][RSS]]
@ -275,13 +277,13 @@ Install and configure packages.
(use-package evil-collection (use-package evil-collection
:after evil :after evil
:custom :config
(evil-collection-company-use-tng nil) (setq evil-collection-company-use-tng nil)
(evil-collection-key-blacklist (list dot/leader-key dot/localleader-key (setq evil-collection-key-blacklist (list dot/leader-key dot/localleader-key
dot/leader-alt-key dot/localleader-alt-key dot/leader-alt-key dot/localleader-alt-key
"M-h" "M-j" "M-k" "M-l")) "M-h" "M-j" "M-k" "M-l"))
(evil-collection-setup-minibuffer t) (setq evil-collection-setup-minibuffer t)
:config (evil-collection-init)) (evil-collection-init))
(use-package evil-nerd-commenter (use-package evil-nerd-commenter
:defer t :defer t
@ -606,6 +608,21 @@ Language Server Protocol.
:config (push 'company-c-headers company-backends)) :config (push 'company-c-headers company-backends))
#+END_SRC #+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 *** PHP
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -1340,7 +1357,7 @@ Vim equivalence: >gv"
*** Selectrum Functions *** Selectrum Functions
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun dot/selectrum-backspace () (defun dot/selectrum-backspace ()
"In Selectrum file completion, backward kill sexp, delete char otherwise." "In Selectrum file completion, backward kill sexp, delete char otherwise."
(interactive) (interactive)
(if (and selectrum-active-p (if (and selectrum-active-p
@ -1405,6 +1422,7 @@ Evil command aliases.
;; Display fill column indicator ;; Display fill column indicator
(add-hook 'prog-mode-hook 'display-fill-column-indicator-mode) (add-hook 'prog-mode-hook 'display-fill-column-indicator-mode)
(add-hook 'text-mode-hook 'display-fill-column-indicator-mode)
;; Highlight parenthesis ;; Highlight parenthesis
(add-hook 'prog-mode-hook 'show-paren-mode) (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") "t w" '(visual-line-mode :which-key "Toggle line wrapping")
;; Update packages ;; Update packages
"u" '(auto-package-update-now :which-key "Update packages") "U" '(auto-package-update-now :which-key "Update packages")
;; Window ;; Window
"w" '(:ignore t :which-key "window") "w" '(:ignore t :which-key "window")

Loading…
Cancel
Save