mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 10:44:38 +10:00
Fixing sublayout errors in XMonad. Playing with prettify symbols in Doom Emacs.
This commit is contained in:
@@ -62,6 +62,9 @@
|
||||
|
||||
(defalias 'year-calendar 'dt/year-calendar)
|
||||
|
||||
(use-package! calfw)
|
||||
(use-package! calfw-org)
|
||||
|
||||
(setq centaur-tabs-set-bar 'over
|
||||
centaur-tabs-set-icons t
|
||||
centaur-tabs-gray-out-icons 'buffer
|
||||
@@ -221,7 +224,6 @@
|
||||
(custom-set-faces!
|
||||
'(font-lock-comment-face :slant italic)
|
||||
'(font-lock-keyword-face :slant italic))
|
||||
(setq global-prettify-symbols-mode t)
|
||||
|
||||
(setq ivy-posframe-display-functions-alist
|
||||
'((swiper . ivy-posframe-display-at-point)
|
||||
@@ -367,6 +369,28 @@
|
||||
:desc "Edit doom init.el" "i" #'(lambda () (interactive) (find-file "~/.config/doom/init.el"))
|
||||
:desc "Edit doom packages.el" "p" #'(lambda () (interactive) (find-file "~/.config/doom/packages.el"))))
|
||||
|
||||
(defun my/org-mode/load-prettify-symbols () "Prettify org mode keywords"
|
||||
(interactive)
|
||||
(setq prettify-symbols-alist
|
||||
(mapcan (lambda (x) (list x (cons (upcase (car x)) (cdr x))))
|
||||
'(("#+begin_src" . ?)
|
||||
("#+end_src" . ?)
|
||||
("#+begin_example" . ?)
|
||||
("#+end_example" . ?)
|
||||
("#+DATE:" . ?⏱)
|
||||
("#+AUTHOR:" . ?✏)
|
||||
("[ ]" . ?☐)
|
||||
("[X]" . ?☑ )
|
||||
("[-]" . ?❍ )
|
||||
("lambda" . ?λ)
|
||||
("#+header:" . ?)
|
||||
("#+name:" . ?﮸)
|
||||
("#+results:" . ?)
|
||||
("#+call:" . ?)
|
||||
(":properties:" . ?)
|
||||
(":logbook:" . ?))))
|
||||
(prettify-symbols-mode 1))
|
||||
|
||||
(map! :leader
|
||||
:desc "Org babel tangle" "m B" #'org-babel-tangle)
|
||||
(after! org
|
||||
@@ -399,6 +423,14 @@
|
||||
"DONE(d)" ; Task has been completed
|
||||
"CANCELLED(c)" )))) ; Task has been cancelled
|
||||
|
||||
(custom-set-faces
|
||||
'(org-level-1 ((t (:inherit outline-1 :height 1.2))))
|
||||
'(org-level-2 ((t (:inherit outline-2 :height 1.0))))
|
||||
'(org-level-3 ((t (:inherit outline-3 :height 1.0))))
|
||||
'(org-level-4 ((t (:inherit outline-4 :height 1.0))))
|
||||
'(org-level-5 ((t (:inherit outline-5 :height 1.0))))
|
||||
)
|
||||
|
||||
(use-package ox-man)
|
||||
(use-package ox-gemini)
|
||||
|
||||
|
||||
@@ -122,6 +122,12 @@ See also: https://stackoverflow.com/questions/9547912/emacs-calendar-show-more-t
|
||||
(defalias 'year-calendar 'dt/year-calendar)
|
||||
#+end_src
|
||||
|
||||
Let's also play around with calfw.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! calfw)
|
||||
(use-package! calfw-org)
|
||||
#+end_src
|
||||
|
||||
* CENTAUR-TABS
|
||||
To use tabs in Doom Emacs, be sure to uncomment "tabs" in Doom's init.el. Displays tabs at the top of the window similar to tabbed web browsers such as Firefox. I don't actually use tabs in Emacs. I placed this in my config to help others who may want tabs. In the default configuration of Doom Emacs, 'SPC t' is used for "toggle" keybindings, so I choose 'SPC t c' to toggle centaur-tabs. The "g" prefix for keybindings is used for a bunch of evil keybindings in Doom, but "g" plus the arrow keys were not used, so I thought I would bind those for tab navigation. But I did leave the default "g t" and "g T" intact if you prefer to use those for centaur-tabs-forward/backward.
|
||||
|
||||
@@ -390,7 +396,6 @@ Settings related to fonts within Doom Emacs:
|
||||
(custom-set-faces!
|
||||
'(font-lock-comment-face :slant italic)
|
||||
'(font-lock-keyword-face :slant italic))
|
||||
(setq global-prettify-symbols-mode t)
|
||||
#+END_SRC
|
||||
|
||||
* IVY
|
||||
@@ -635,6 +640,30 @@ Keybindings to open files that I work with all the time using the find-file comm
|
||||
* ORG MODE
|
||||
Note that I wrapped most of this in (after! org). Without this, my settings might be evaluated too early, which will result in my settings being overwritten by Doom's defaults. I have also enabled org-journal by adding (+journal) to the org section of my Doom Emacs init.el.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/org-mode/load-prettify-symbols () "Prettify org mode keywords"
|
||||
(interactive)
|
||||
(setq prettify-symbols-alist
|
||||
(mapcan (lambda (x) (list x (cons (upcase (car x)) (cdr x))))
|
||||
'(("#+begin_src" . ?)
|
||||
("#+end_src" . ?)
|
||||
("#+begin_example" . ?)
|
||||
("#+end_example" . ?)
|
||||
("#+DATE:" . ?⏱)
|
||||
("#+AUTHOR:" . ?✏)
|
||||
("[ ]" . ?☐)
|
||||
("[X]" . ?☑ )
|
||||
("[-]" . ?❍ )
|
||||
("lambda" . ?λ)
|
||||
("#+header:" . ?)
|
||||
("#+name:" . ?﮸)
|
||||
("#+results:" . ?)
|
||||
("#+call:" . ?)
|
||||
(":properties:" . ?)
|
||||
(":logbook:" . ?))))
|
||||
(prettify-symbols-mode 1))
|
||||
#+end_src
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(map! :leader
|
||||
:desc "Org babel tangle" "m B" #'org-babel-tangle)
|
||||
@@ -669,6 +698,17 @@ Note that I wrapped most of this in (after! org). Without this, my settings mig
|
||||
"CANCELLED(c)" )))) ; Task has been cancelled
|
||||
#+END_SRC
|
||||
|
||||
Setting the font sizes for each header level in Org mode.
|
||||
#+begin_src emacs-lisp
|
||||
(custom-set-faces
|
||||
'(org-level-1 ((t (:inherit outline-1 :height 1.2))))
|
||||
'(org-level-2 ((t (:inherit outline-2 :height 1.0))))
|
||||
'(org-level-3 ((t (:inherit outline-3 :height 1.0))))
|
||||
'(org-level-4 ((t (:inherit outline-4 :height 1.0))))
|
||||
'(org-level-5 ((t (:inherit outline-5 :height 1.0))))
|
||||
)
|
||||
#+end_src
|
||||
|
||||
We need ox-man for "Org eXporting" to manpage format.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ox-man)
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
;(unpin! t)
|
||||
(package! flycheck-aspell)
|
||||
(package! async)
|
||||
(package! calfw)
|
||||
(package! calfw-org)
|
||||
(package! dashboard)
|
||||
(package! dired-open)
|
||||
(package! dmenu)
|
||||
|
||||
Reference in New Issue
Block a user