From ca066ce37ecf1beae97d6956df6a8569a27c6bb2 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Fri, 7 Aug 2020 19:03:05 -0700 Subject: Added Liberation fonts. --- blendoit/blendoit-init.org | 52 +++++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) (limited to 'blendoit') diff --git a/blendoit/blendoit-init.org b/blendoit/blendoit-init.org index 4dd4f4e..716675f 100644 --- a/blendoit/blendoit-init.org +++ b/blendoit/blendoit-init.org @@ -285,51 +285,40 @@ The following prettifies Org mode heading bullets: ) #+END_SRC -Thank you Diego -Zamboni![fn::https://zzamboni.org/post/beautifying-org-mode-in-emacs/] +*** Invisible edits -#+NAME: org-cosmetics #+BEGIN_SRC emacs-lisp - ;; (let* ((variable-tuple - ;; (cond ((x-list-fonts "Dejavu Sans") '(:font "Dejavu Sans")) - ;; ((x-family-fonts "Sans Serif") '(:family "Sans Serif")) - ;; (nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro.")))) - ;; (base-font-color (face-foreground 'default nil 'default)) - ;; (headline `(:inherit default :weight bold))) +(setq org-catch-invisible-edits t) +#+END_SRC - ;; (custom-theme-set-faces - ;; 'user - ;; `(org-level-8 ((t (,@headline ,@variable-tuple)))) - ;; `(org-level-7 ((t (,@headline ,@variable-tuple)))) - ;; `(org-level-6 ((t (,@headline ,@variable-tuple)))) - ;; `(org-level-5 ((t (,@headline ,@variable-tuple)))) - ;; `(org-level-4 ((t (,@headline ,@variable-tuple :height 1.1)))) - ;; `(org-level-3 ((t (,@headline ,@variable-tuple :height 1.25)))) - ;; `(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5)))) - ;; `(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75)))) - ;; `(org-document-title ((t (,@headline ,@variable-tuple :height 2.0 :underline nil)))))) +*** Agenda - ;(custom-theme-set-faces - ; 'user - ; '(variable-pitch ((t (:family "Liberation Sans")))) - ; '(fixed-pitch ((t ( :family "Hack"))))) +The agenda displays a chronological list of headings across all agenda files +for which the heading or body contain a matching =org-time-stamp=.[fn::An +=org-time-stamp= can be inserted with =C-c .= (period)] +#+BEGIN_SRC emacs-lisp +(global-set-key (kbd "C-c a") 'org-agenda-list) #+END_SRC -*** Invisible edits +*** Timestamps + +More literary timestamps are exported to LaTeX using the following custom +format: #+BEGIN_SRC emacs-lisp -(setq org-catch-invisible-edits t) + (setq org-time-stamp-custom-formats + '("%d %b, %Y (%a)" . "%d %b, %Y (%a), at %H:%M")) #+END_SRC -*** Agenda +*** LaTeX export -The agenda displays a chronological list of headings across all agenda files -for which the heading or body contain a matching =org-time-stamp=.[fn::An -=org-time-stamp= can be inserted with =C-c .= (period)] +The following makes =CLOSED= items appear green in LaTeX. Very stylish, much +flair! #+BEGIN_SRC emacs-lisp -(global-set-key (kbd "C-c a") 'org-agenda) + (setq org-latex-inactive-timestamp-format + "\\textcolor{ForestGreen!60}{\\textit{%s}}") #+END_SRC *** Publish @@ -417,6 +406,7 @@ LaTeX \rightarrow PDF. #+BEGIN_SRC emacs-lisp (use-package dumb-jump) +(add-hook 'xref-backend-functions #'dumb-jump-xref-activate) #+END_SRC ** gnuplot -- cgit v1.2.3