General refactor + cleanup; update TODO.org
This commit is contained in:
parent
b86634e79f
commit
200846ee35
7 changed files with 63 additions and 47 deletions
|
@ -204,6 +204,7 @@
|
|||
;; and separators/dividers
|
||||
("^ *\\(-----+\\)$" 1 'org-meta-line)
|
||||
;; custom #hashtags & @at-tags for another level of organization
|
||||
;; TODO refactor this into a single rule
|
||||
("\\s-\\(#[^ \n]+\\)" 1 'org-tag)
|
||||
("\\s-\\(@[^ \n]+\\)" 1 'org-special-keyword))))
|
||||
|
||||
|
@ -224,20 +225,18 @@
|
|||
(sp-local-pair "{" nil))
|
||||
|
||||
;; The standard unicode characters are usually misaligned depending on the
|
||||
;; font. This bugs me. Personally, the markdown #-marks for headlines are more
|
||||
;; elegant, so use those.
|
||||
;; font. This bugs me. Personally, markdown #-marks for headlines are more
|
||||
;; elegant, so we use those.
|
||||
(def-package! org-bullets
|
||||
:commands org-bullets-mode
|
||||
:init (add-hook 'org-mode-hook 'org-bullets-mode)
|
||||
:init (add-hook 'org-mode-hook #'org-bullets-mode)
|
||||
:config (setq org-bullets-bullet-list '("#")))
|
||||
|
||||
;; Keybinds
|
||||
(map! (:map org-mode-map
|
||||
"RET" nil
|
||||
"RET" #'org-return-indent
|
||||
"C-j" nil
|
||||
"C-k" nil
|
||||
:i [remap doom/inflate-space-maybe] #'org-self-insert-command
|
||||
:i "RET" #'org-return-indent)
|
||||
"C-k" nil)
|
||||
|
||||
(:map evil-org-mode-map
|
||||
:n "RET" #'+org/dwim-at-point
|
||||
|
@ -266,10 +265,10 @@
|
|||
:i [backtab] #'+org/dedent-or-prev-field
|
||||
|
||||
:n "<tab>" #'+org/toggle-fold
|
||||
:v "<S-tab>" #'+snippets/expand-on-region
|
||||
|
||||
:nv "j" #'evil-next-visual-line
|
||||
:nv "k" #'evil-previous-visual-line
|
||||
:v "<S-tab>" #'+snippets/expand-on-region
|
||||
|
||||
:i "M-a" (λ! (evil-visual-state) (org-mark-element))
|
||||
:n "M-a" #'org-mark-element
|
||||
|
|
|
@ -355,6 +355,10 @@
|
|||
:i [remap delete-backward-char] #'doom/deflate-space-maybe
|
||||
:i [remap newline] #'doom/newline-and-indent
|
||||
|
||||
(:after org-mode
|
||||
(:map org-mode-map
|
||||
:i [remap doom/inflate-space-maybe] #'org-self-insert-command))
|
||||
|
||||
;; Make ESC quit all the things
|
||||
(:map (minibuffer-local-map
|
||||
minibuffer-local-ns-map
|
||||
|
@ -381,6 +385,7 @@
|
|||
|
||||
(:map help-map
|
||||
"l" #'find-library
|
||||
"L" #'view-lossage
|
||||
"h" #'describe-face ; overwrite `view-hello-file'
|
||||
"g" nil))
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
;; <https://github.com/hlissner/emacs-doom-theme>
|
||||
(def-package! doom-themes :demand t
|
||||
:config
|
||||
(setq doom-one-linum-height 0.9)
|
||||
|
||||
(load-theme +doom-theme t)
|
||||
|
||||
;; Since Fira Mono doesn't have an italicized variant, highlight it instead
|
||||
|
@ -137,4 +135,5 @@
|
|||
(fringe-helper-define 'git-gutter-fr:deleted 'bottom
|
||||
"X......."
|
||||
"XX......"
|
||||
"XXX....."))
|
||||
"XXX....."
|
||||
"XXXX...."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue