emacs: general reorganisation
This commit is contained in:
parent
4a8aa360e6
commit
112810b864
|
@ -5,7 +5,9 @@
|
|||
* Preamble
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(require 'f)
|
||||
(require 'dash) ; lists
|
||||
(require 's) ; strings
|
||||
(require 'f) ; paths & files
|
||||
#+end_src
|
||||
|
||||
* Overall configuration
|
||||
|
@ -270,8 +272,7 @@ The environment variable ~SSH_AUTH_SOCK~ needs to be set for git to work within
|
|||
(sequence "WAITING(a@)" "DELEGATED(l@)" "DISCUSS(s)" "MONITOR(m)" "ONHOLD(H)" "|")
|
||||
(sequence "TOREAD" "READING" "|" "READ"))
|
||||
|
||||
org-enforce-todo-dependencies t
|
||||
org-agenda-dim-blocked-tasks t)
|
||||
org-enforce-todo-dependencies t)
|
||||
#+end_src
|
||||
|
||||
** Properties
|
||||
|
@ -400,6 +401,7 @@ See also [[id:18709859-c3db-4d0e-a4a0-e797b58a2e07][Capture templates]]
|
|||
#+begin_src emacs-lisp
|
||||
(defun jc/agenda-line-blocked-p (item)
|
||||
(get-text-property 0 'org-todo-blocked item))
|
||||
(setq org-agenda-dim-blocked-tasks t)
|
||||
|
||||
(use-package! org-super-agenda
|
||||
:after (org-agenda)
|
||||
|
@ -577,22 +579,6 @@ See also [[id:18709859-c3db-4d0e-a4a0-e797b58a2e07][Capture templates]]
|
|||
(insert (jc/fix-python-date (format-time-string "date: %FT%T%z")))))
|
||||
#+end_src
|
||||
|
||||
** Programming
|
||||
|
||||
*** Web
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
|
||||
(setq web-mode-enable-engine-detection t)
|
||||
#+end_src
|
||||
|
||||
*** Python
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'auto-mode-alist '("Pipfile\\'" . toml-mode))
|
||||
#+end_src
|
||||
|
||||
|
||||
** Shell
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -600,13 +586,27 @@ See also [[id:18709859-c3db-4d0e-a4a0-e797b58a2e07][Capture templates]]
|
|||
#+end_src
|
||||
* Languages/modes
|
||||
|
||||
** Templating (~web-mode~)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq web-mode-engines-alist
|
||||
'(("go" . "/layouts/.*\\.html\\'")))
|
||||
(add-to-list 'auto-mode-alist '("Pipfile\\'" . toml-mode))
|
||||
#+end_src
|
||||
|
||||
** Web
|
||||
|
||||
*** Templating (~web-mode~)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
|
||||
(setq web-mode-engines-alist
|
||||
'(("go" . "/layouts/.*\\.html\\'"))
|
||||
|
||||
web-mode-enable-engine-detection t)
|
||||
#+end_src
|
||||
|
||||
** Python
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'auto-mode-alist '("Pipfile\\'" . toml-mode))
|
||||
#+end_src
|
||||
|
||||
** Lisp (and related)
|
||||
|
||||
|
|
Loading…
Reference in New Issue