Figuring out org mode and styling
This commit is contained in:
54
init.el
54
init.el
@@ -12,14 +12,6 @@
|
|||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
(global-display-line-numbers-mode)
|
(global-display-line-numbers-mode)
|
||||||
|
|
||||||
;;disable line numbers for modes where it's weird
|
|
||||||
;(dolist (mode '(org-mode-hook
|
|
||||||
; term-mode-hook
|
|
||||||
; shell-mode-hook
|
|
||||||
; eshell-mode-hook))
|
|
||||||
; (add-hook mode (lambda () (display-line-numbers-mode 0))))
|
|
||||||
|
|
||||||
|
|
||||||
;;disable file backups
|
;;disable file backups
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
(setq create-lockfiles nil)
|
(setq create-lockfiles nil)
|
||||||
@@ -28,8 +20,6 @@
|
|||||||
(setq vc-follows-symlinks t
|
(setq vc-follows-symlinks t
|
||||||
find-file-visit-truename t)
|
find-file-visit-truename t)
|
||||||
|
|
||||||
;; sync clipboard with wayland
|
|
||||||
|
|
||||||
;; Package Manager -------------------------------------------------------------
|
;; Package Manager -------------------------------------------------------------
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
||||||
@@ -126,7 +116,26 @@
|
|||||||
|
|
||||||
(rh/leader-keys
|
(rh/leader-keys
|
||||||
"t" '(:ignore t :which-key "toggles")
|
"t" '(:ignore t :which-key "toggles")
|
||||||
"tt" '(consult-theme :which-key "choose theme")))
|
"tt" '(consult-theme :which-key "choose theme")
|
||||||
|
|
||||||
|
"f" '(:ignore t :which-key "files")
|
||||||
|
"ff" '(find-file :which-key "find file")
|
||||||
|
"fr" '(consult-recent-file :which-key "recent files")
|
||||||
|
"fb" '(consult-buffer :which-key "switch buffer")
|
||||||
|
|
||||||
|
"o" '(:ignore t :which-key "org")
|
||||||
|
"oa" '(org-agenda :which-key "agenda")
|
||||||
|
"oc" '(org-capture :which-key "capture")
|
||||||
|
"ol" '(org-store-link :which-key "store link")
|
||||||
|
"oi" '(org-insert-link :which-key "insert link")
|
||||||
|
"ot" '(org-todo :which-key "cycle todo")
|
||||||
|
"os" '(org-schedule :which-key "schedule")
|
||||||
|
"od" '(org-deadline :which-key "deadline")
|
||||||
|
"oT" '(org-time-stamp :which-key "timestamp")
|
||||||
|
"op" '(org-priority :which-key "priority")
|
||||||
|
"ox" '(org-toggle-checkbox :which-key "toggle checkbox")
|
||||||
|
"o-" '(org-ctrl-c-minus :which-key "insert item/cycle list type")
|
||||||
|
"or" '(org-refile :which-key "refile")))
|
||||||
|
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:init
|
:init
|
||||||
@@ -200,11 +209,7 @@
|
|||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages nil))
|
||||||
'(all-the-icons consult-projectile doom-modeline embark-consult
|
|
||||||
evil-collection general gruvbox-theme
|
|
||||||
hydra magit marginalia orderless org-bullets
|
|
||||||
rainbow-delimiters vertico visual-fill-column)))
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
@@ -216,24 +221,9 @@
|
|||||||
|
|
||||||
(defun rh/org-mode-setup ()
|
(defun rh/org-mode-setup ()
|
||||||
(org-indent-mode)
|
(org-indent-mode)
|
||||||
(variable-pitch-mode 1)
|
|
||||||
(visual-line-mode 1))
|
(visual-line-mode 1))
|
||||||
|
|
||||||
|
|
||||||
(defun rh/org-font-setup ()
|
|
||||||
;; Replace list hyphen with dot
|
|
||||||
(font-lock-add-keywords 'org-mode
|
|
||||||
'(("^ *\\([-]\\) "
|
|
||||||
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))))
|
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:hook (org-mode . rh/org-mode-setup)
|
:hook (org-mode . rh/org-mode-setup)
|
||||||
:config
|
:config
|
||||||
(setq org-ellipsis " ▾")
|
(setq org-agenda-files (directory-files-recursively "~/org" "\\.org$")))
|
||||||
(rh/org-font-setup))
|
|
||||||
|
|
||||||
(use-package org-bullets
|
|
||||||
:after org
|
|
||||||
:hook (org-mode . org-bullets-mode)
|
|
||||||
:custom
|
|
||||||
(org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●")))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user