add origami mode to progamming mode
This commit is contained in:
parent
80471e301b
commit
2f04e02c77
23
conf.org
23
conf.org
|
@ -498,11 +498,22 @@ Some prompts require literal "yes" or "no" to decide action. Life is short and I
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** folding
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package origami
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
;; weirdly, delight does not do this automatically
|
||||||
|
(unless (assq 'origami-mode minor-mode-alist)
|
||||||
|
(setq minor-mode-alist (cons '(origami-mode "Origami")
|
||||||
|
minor-mode-alist)))
|
||||||
|
(delight 'origami-mode "Ω" "origami"))
|
||||||
|
#+END_SRC
|
||||||
* low-level config
|
* low-level config
|
||||||
General configuation for behind-the-scenes behavior
|
General configuation for behind-the-scenes behavior
|
||||||
** user information
|
** user information
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq user-full-name "Dwarshuis, Nathan J")
|
(validate-setq user-full-name "Dwarshuis, Nathan J")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** autosave
|
** autosave
|
||||||
Saving files continuously is actually really annoying and clutters my disk. Turn it off.
|
Saving files continuously is actually really annoying and clutters my disk. Turn it off.
|
||||||
|
@ -658,6 +669,7 @@ Flycheck syntax checkers
|
||||||
:hook
|
:hook
|
||||||
((ess-mode . flycheck-mode)
|
((ess-mode . flycheck-mode)
|
||||||
(ess-mode . company-mode)
|
(ess-mode . company-mode)
|
||||||
|
(ess-mode . origami-mode)
|
||||||
(ess-mode . nd/init-ess-company)
|
(ess-mode . nd/init-ess-company)
|
||||||
(ess-mode . prettify-symbols-mode)
|
(ess-mode . prettify-symbols-mode)
|
||||||
(ess-mode . fci-mode)
|
(ess-mode . fci-mode)
|
||||||
|
@ -685,6 +697,7 @@ Flycheck syntax checkers to install (either globally or using =pip=)
|
||||||
|
|
||||||
(use-package python
|
(use-package python
|
||||||
:hook ((python-mode . flycheck-mode)
|
:hook ((python-mode . flycheck-mode)
|
||||||
|
(python-mode . origami-mode)
|
||||||
(python-mode . anaconda-mode)
|
(python-mode . anaconda-mode)
|
||||||
(python-mode . company-mode)
|
(python-mode . company-mode)
|
||||||
(python-mode . nd/init-anaconda-company)
|
(python-mode . nd/init-anaconda-company)
|
||||||
|
@ -728,6 +741,7 @@ This also provides GHC which is used by flycheck for syntax checking.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package haskell-mode
|
(use-package haskell-mode
|
||||||
:straight t
|
:straight t
|
||||||
|
:hook (haskell-mode . origami-mode)
|
||||||
:config
|
:config
|
||||||
(setq haskell-interactive-popup-errors nil))
|
(setq haskell-interactive-popup-errors nil))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
@ -2210,11 +2224,10 @@ earlier ones."
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package org-super-agenda
|
(use-package org-super-agenda
|
||||||
:straight t
|
:straight t
|
||||||
:config (let ((inhibit-message t)) (org-super-agenda-mode 1)))
|
:config
|
||||||
|
(let ((inhibit-message t)) (org-super-agenda-mode 1))
|
||||||
|
(add-hook 'org-agenda-mode-hook 'origami-mode))
|
||||||
|
|
||||||
(use-package origami
|
|
||||||
:straight t
|
|
||||||
:hook (org-agenda-mode . origami-mode))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
**** block agenda views
|
**** block agenda views
|
||||||
***** default sorting
|
***** default sorting
|
||||||
|
|
Loading…
Reference in New Issue