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! :leader "w 1" #'delete-other-windows)
|
||||
|
||||
;; Org-mode custom keybindings
|
||||
(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)
|
||||
(setq-default evil-escape-key-sequence "kj")
|
||||
|
||||
(defun fd-format-and-save()
|
||||
(interactive)
|
||||
@ -104,8 +100,14 @@
|
||||
(after! org
|
||||
(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! :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
|
||||
|
||||
** Spell Checking
|
||||
@ -158,20 +160,6 @@
|
||||
|
||||
#+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
|
||||
#+begin_src emacs-lisp :tangle yes
|
||||
|
||||
@ -225,3 +213,27 @@
|
||||
(map! :map company-active-map "TAB" nil)
|
||||
(map! :map company-active-map "<tab>" nil)
|
||||
#+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