emacs: clean up doom config
This commit is contained in:
parent
08252a504e
commit
51985d6a7c
@ -71,11 +71,7 @@
|
|||||||
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
|
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
|
||||||
(map! :leader "w 1" #'delete-other-windows)
|
(map! :leader "w 1" #'delete-other-windows)
|
||||||
|
|
||||||
;; Org-mode custom keybindings
|
(setq-default evil-escape-key-sequence "kj")
|
||||||
(map! :map org-mode-map :nvi "C-k" #'org-backward-element)
|
|
||||||
(map! :map org-mode-map :nvi "C-j" #'org-forward-element)
|
|
||||||
(map! :map org-mode-map :nvi "C-h" #'org-up-element)
|
|
||||||
(map! :map org-mode-map :nvi "C-l" #'org-down-element)
|
|
||||||
|
|
||||||
(defun fd-format-and-save()
|
(defun fd-format-and-save()
|
||||||
(interactive)
|
(interactive)
|
||||||
@ -104,8 +100,14 @@
|
|||||||
(after! org
|
(after! org
|
||||||
(setq org-agenda-files (expand-file-name "org-agenda-files" doom-private-dir)))
|
(setq org-agenda-files (expand-file-name "org-agenda-files" doom-private-dir)))
|
||||||
|
|
||||||
|
(setq org-export-allow-bind-keywords t)
|
||||||
|
|
||||||
;; (map! :nv "SPC r" "SPC n r")
|
;; (map! :nv "SPC r" "SPC n r")
|
||||||
|
|
||||||
|
(map! :map org-mode-map :nvi "C-k" #'org-backward-element)
|
||||||
|
(map! :map org-mode-map :nvi "C-j" #'org-forward-element)
|
||||||
|
(map! :map org-mode-map :nvi "C-h" #'org-up-element)
|
||||||
|
(map! :map org-mode-map :nvi "C-l" #'org-down-element)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Spell Checking
|
** Spell Checking
|
||||||
@ -158,20 +160,6 @@
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Python
|
|
||||||
#+begin_src emacs-lisp :tangle yes
|
|
||||||
|
|
||||||
;; Python settings
|
|
||||||
;; (add-hook 'python-mode-hook (lambda ()
|
|
||||||
;; (setq flycheck-checker 'python-pylint)))
|
|
||||||
|
|
||||||
;; (add-hook 'pyhon-mode-local-vars-hook
|
|
||||||
;; (lambda ()
|
|
||||||
;; (when (flycheck-may-enable-checker 'lsp)
|
|
||||||
;; (flycheck-select-checker 'python-pylint))))
|
|
||||||
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Matlab
|
** Matlab
|
||||||
#+begin_src emacs-lisp :tangle yes
|
#+begin_src emacs-lisp :tangle yes
|
||||||
|
|
||||||
@ -225,3 +213,27 @@
|
|||||||
(map! :map company-active-map "TAB" nil)
|
(map! :map company-active-map "TAB" nil)
|
||||||
(map! :map company-active-map "<tab>" nil)
|
(map! :map company-active-map "<tab>" nil)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** More
|
||||||
|
#+begin_src emacs-lisp :tangle yes
|
||||||
|
(defun fd-pretty-print-dirty-json()
|
||||||
|
(interactive)
|
||||||
|
(let ((new-buffer-contents (shell-command-to-string (format "echo '%s' | newliner" (buffer-string)))))
|
||||||
|
(erase-buffer)
|
||||||
|
(insert new-buffer-contents)
|
||||||
|
(evil-indent (buffer-end -1) (buffer-end +1)))
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
** Python
|
||||||
|
#+begin_src emacs-lisp :tangle yes
|
||||||
|
|
||||||
|
;; Python settings
|
||||||
|
;; (add-hook 'python-mode-hook (lambda ()
|
||||||
|
;; (setq flycheck-checker 'python-pylint)))
|
||||||
|
|
||||||
|
;; (add-hook 'pyhon-mode-local-vars-hook
|
||||||
|
;; (lambda ()
|
||||||
|
;; (when (flycheck-may-enable-checker 'lsp)
|
||||||
|
;; (flycheck-select-checker 'python-pylint))))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user