General cleanup
This commit is contained in:
parent
eb9defe2e7
commit
42e6b0913d
18 changed files with 164 additions and 162 deletions
|
@ -24,12 +24,11 @@
|
|||
:lighter " BIG"
|
||||
:global t
|
||||
(doom/load-font (if big-mode big-mode-font doom-default-font))
|
||||
(setq-default powerline-height
|
||||
(if big-mode
|
||||
big-mode-modeline-height
|
||||
big-mode--powerline-height))
|
||||
(setq-default line-spacing
|
||||
(if big-mode big-mode-line-spacing big-mode--line-spacing)))
|
||||
(setq-default
|
||||
powerline-height
|
||||
(if big-mode big-mode-modeline-height big-mode--powerline-height)
|
||||
line-spacing
|
||||
(if big-mode big-mode-line-spacing big-mode--line-spacing)))
|
||||
|
||||
(provide 'extra-demo)
|
||||
;;; extra-demo.el ends here
|
||||
|
|
|
@ -13,12 +13,10 @@
|
|||
(sp-local-pair "if" nil :actions :rem)
|
||||
(sp-local-pair "while" nil :actions :rem)
|
||||
(sp-local-pair "function" nil :actions :rem)
|
||||
|
||||
(sp-local-pair "then " " end")
|
||||
(sp-local-pair "do " " end")
|
||||
(sp-local-pair "then" "end" :when '(("RET")) :post-handlers '("||\n[i]"))
|
||||
(sp-local-pair "do" "end" :when '(("RET")) :post-handlers '("||\n[i]"))
|
||||
|
||||
;; block functions
|
||||
(sp-local-pair "function" "end" :when '(sp-point-after-bol-p) :post-handlers '(" |\n[i]"))
|
||||
;; inline functions
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
(def-docset! python-mode "py,py3,python")
|
||||
(def-version-cmd! python-mode "python --version 2>&1 | cut -d' ' -f2")
|
||||
(def-repl! python-mode doom/inf-python)
|
||||
|
||||
(define-key python-mode-map (kbd "DEL") nil)) ; interferes with smartparens
|
||||
|
||||
(use-package anaconda-mode
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
:mode (("\\.\\(ba\\|z\\)sh$" . sh-mode)
|
||||
("/\\.?z\\(sh\\(/.*\\|$\\)\\|profile\\|log\\(in\\|out\\)\\|sh\\(rc\\|env\\)\\)$" . sh-mode)
|
||||
("/\\.?bash\\(/.*\\|rc\\|_profile\\)$" . sh-mode))
|
||||
:init
|
||||
(add-hook! sh-mode
|
||||
'(flycheck-mode doom|sh-extra-font-lock-activate))
|
||||
:init (add-hook! sh-mode '(flycheck-mode doom|sh-extra-font-lock-activate))
|
||||
:config
|
||||
(def-company-backend! sh-mode (shell))
|
||||
(def-electric! sh-mode :words ("else" "elif" "fi" "done"))
|
||||
|
|
|
@ -10,31 +10,27 @@
|
|||
markdown-enable-math t
|
||||
markdown-make-gfm-checkboxes-buttons t
|
||||
markdown-gfm-additional-languages '("sh"))
|
||||
|
||||
:config
|
||||
(map! :map markdown-mode-map
|
||||
"<backspace>" nil
|
||||
"<M-left>" nil
|
||||
"<M-right>" nil
|
||||
|
||||
;; Assumes you have a markdown renderer plugin in chrome
|
||||
:nv "M-r" (λ! (doom-open-with "Google Chrome"))
|
||||
|
||||
"M-*" 'markdown-insert-list-item
|
||||
"M-b" 'markdown-insert-bold
|
||||
"M-i" 'markdown-insert-italic
|
||||
"M-`" 'doom/markdown-insert-del
|
||||
|
||||
;; Assumes you have a markdown renderer plugin in chrome
|
||||
:nv "M-r" (λ! (doom-open-with "Google Chrome"))
|
||||
;; TODO: Make context sensitive
|
||||
:n "[p" 'markdown-promote
|
||||
:n "]p" 'markdown-demote
|
||||
:i "M--" 'markdown-insert-hr
|
||||
(:localleader
|
||||
:nv "i" 'markdown-insert-image
|
||||
:nv "l" 'markdown-insert-link
|
||||
:nv "L" 'markdown-insert-reference-link-dwim
|
||||
:nv "b" 'markdown-preview)
|
||||
|
||||
;; TODO: Make context sensitive
|
||||
:n "[p" 'markdown-promote
|
||||
:n "]p" 'markdown-demote
|
||||
|
||||
:i "M--" 'markdown-insert-hr))
|
||||
:nv "b" 'markdown-preview)))
|
||||
|
||||
(use-package markdown-toc :after markdown-mode)
|
||||
|
||||
|
|
|
@ -38,10 +38,8 @@
|
|||
(map! :map web-mode-map
|
||||
"M-/" 'web-mode-comment-or-uncomment
|
||||
:n "M-r" 'doom/web-refresh-browser
|
||||
|
||||
:n "za" 'web-mode-fold-or-unfold
|
||||
(:localleader :n "t" 'web-mode-element-rename)
|
||||
|
||||
:nv "]a" 'web-mode-attribute-next
|
||||
:nv "[a" 'web-mode-attribute-previous
|
||||
:nv "]t" 'web-mode-tag-next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue