Browse Source

Added hook for autosetting org-tags-column based on frame-width

master
Josh Wolfe 2 years ago
parent
commit
6058efec58
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      emacs/.emacs.d/README.org

+ 6
- 1
emacs/.emacs.d/README.org View File

@@ -880,6 +880,12 @@ Setup some basic quality of life org settings.
org-agenda-skip-scheduled-if-done t
org-ellipsis wolfe/org-ellipsis)

;; 0.75 is used since that's approximately how much bigger the org heading is
(add-hook 'org-mode-hook
(lambda ()
(setq org-tags-column (- (floor (* 0.75 (frame-width)))))
(org-align-all-tags)))

(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t)
@@ -967,7 +973,6 @@ minted package for PDF export.
(use-package ox-hugo
:after ox
:config
(setq org-tags-column -63)
(setq org-hugo-front-matter-format "yaml"))
#+END_SRC


Loading…
Cancel
Save