Org Bullets & Ellipsis

- Org babel tangle keybinding
- Add org-superstar with custom headline bullets
  and item bullets
- Add custom ellipsis icon
This commit is contained in:
Sravan Balaji
2022-07-01 15:39:54 -04:00
parent 2c81c199a4
commit cf8cc5aebf
3 changed files with 36 additions and 4 deletions

View File

@@ -225,7 +225,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
org ; organize your plain life in plain text
(org +pretty) ; organize your plain life in plain text
;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional
@@ -394,6 +394,13 @@ If you use =org= and don't want your org files in the default location below, ch
(setq org-directory "~/org/")
#+END_SRC
**** Babel Tangle Keybinding
#+BEGIN_SRC emacs-lisp :tangle config.el
(map! :leader
:desc "Org babel tangle" "m B" #'org-babel-tangle)
#+END_SRC
**** Auto Tangle
#+BEGIN_SRC emacs-lisp :tangle config.el
@@ -418,6 +425,12 @@ If you use =org= and don't want your org files in the default location below, ch
(setq org-hide-emphasis-markers t)
#+END_SRC
**** Ellipsis
#+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-ellipsis "")
#+END_SRC
**** Fonts
#+BEGIN_SRC emacs-lisp :tangle config.el
@@ -441,6 +454,15 @@ If you use =org= and don't want your org files in the default location below, ch
(org-colors-dracula))
#+END_SRC
**** Superstar
#+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" ""))
(setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists
(add-hook! org-mode (org-superstar-mode))
#+END_SRC
*** Projectile
#+BEGIN_SRC emacs-lisp :tangle config.el

View File

@@ -28,6 +28,9 @@
(setq org-directory "~/org/")
(map! :leader
:desc "Org babel tangle" "m B" #'org-babel-tangle)
(use-package! org-auto-tangle
:defer t
:hook (org-mode . org-auto-tangle-mode)
@@ -40,6 +43,8 @@
(setq org-hide-emphasis-markers t)
(setq org-ellipsis "")
(after! org-faces
(defun org-colors-dracula ()
"Enable Dracula colors for Org headers."
@@ -59,6 +64,11 @@
;; Load our desired org-colors-* theme on startup
(org-colors-dracula))
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" ""))
(setq org-superstar-item-bullet-alist '((?+ . ?➤) (?- . ?✦))) ; changes +/- symbols in item lists
(add-hook! org-mode (org-superstar-mode))
(setq projectile-project-search-path '("~/Projects/" "~/.config/"))
(add-hook! 'web-mode-hook 'prettier-js-mode)

View File

@@ -134,7 +134,7 @@
;;nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
org ; organize your plain life in plain text
(org +pretty) ; organize your plain life in plain text
;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional