* .emacs.d/init.el: Use the default C-a behaviour.
[~bandali/configs] / .emacs.d / lisp / bandali-org.el
index cd40b1e..9ffa538 100644 (file)
@@ -1,6 +1,6 @@
 ;;; bandali-org.el --- bandali's Org setup           -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2018-2020  Amin Bandali
+;; Copyright (C) 2018-2022  Amin Bandali
 
 ;; Author: Amin Bandali <bandali@gnu.org>
 ;; Keywords: calendar, data, docs, hypermedia, outlines
 ;;; Code:
 
 (with-eval-after-load 'org
-  (csetq org-src-tab-acts-natively t
-         org-src-preserve-indentation nil
-         org-edit-src-content-indentation 0
-         org-id-locations-file (b/var "org/id-locations.el")
-         org-link-email-description-format "Email %c: %s" ; %.30s
-         org-highlight-latex-and-related '(entities)
-         org-use-speed-commands t
-         org-startup-folded 'content
-         org-catch-invisible-edits 'show-and-error
-         org-log-done 'time
-         org-pretty-entities t
-         org-agenda-files '("~/usr/org/todos/personal.org"
-                            "~/usr/org/todos/habits.org"
-                            "~/src/git/masters-thesis/todo.org")
-         org-agenda-start-on-weekday 0
-         org-agenda-time-leading-zero t
-         org-habit-graph-column 44
-         org-latex-packages-alist '(("" "listings") ("" "color")))
+  (setq
+   org-src-tab-acts-natively t
+   org-src-preserve-indentation nil
+   org-edit-src-content-indentation 0
+   org-id-locations-file (b/var "org/id-locations.el")
+   org-link-email-description-format "Email %c: %s" ; %.30s
+   org-highlight-latex-and-related '(entities)
+   org-use-speed-commands t
+   org-startup-folded 'content
+   org-catch-invisible-edits 'show-and-error
+   org-log-done 'time
+   org-pretty-entities t
+   org-agenda-files '("~/usr/org/todos/personal.org"
+                      "~/usr/org/todos/habits.org"
+                      "~/src/git/masters-thesis/todo.org")
+   org-agenda-start-on-weekday 0
+   org-agenda-time-leading-zero t
+   org-habit-graph-column 44
+   org-latex-packages-alist '(("" "listings") ("" "color")))
   (add-to-list 'org-structure-template-alist '("L" . "src emacs-lisp") t)
   (add-to-list 'org-modules 'org-habit)
   (custom-set-faces
@@ -51,7 +52,9 @@
   (define-key org-mode-map (kbd "M-L") #'org-insert-last-stored-link)
   (define-key org-mode-map (kbd "M-O") #'org-toggle-link-display)
   ;; hooks
-  (add-hook 'org-mode-hook #'org-indent-mode)
+  ;; `org-indent-mode' doesn't seem to play nice with
+  ;; `display-fill-column-indicator'.
+  ;; (add-hook 'org-mode-hook #'org-indent-mode)
   (add-hook 'org-mode-hook #'auto-fill-mode)
   (add-hook 'org-mode-hook #'flyspell-mode)
 
 (global-set-key (kbd "C-c a o a") #'org-agenda)
 
 (with-eval-after-load 'ox-latex
-  (csetq org-latex-listings 'listings
-         ;; org-latex-prefer-user-labels t
-         )
+  (setq
+   org-latex-listings 'listings
+   ;; org-latex-prefer-user-labels t
+   )
   (add-to-list 'org-latex-classes
                '("IEEEtran" "\\documentclass[11pt]{IEEEtran}"
                  ("\\section{%s}"       . "\\section*{%s}")