Files
.emacs.d/modules/org-mode/siren-org-mode.el
Jim Myhrberg 8ed4a4e6f5 refactor: Visual indentation guides
- Switch from highlight-indentation package to highlight-indent-guides.
- Activate visual indentation in a prog-mode hook, rather than doing
  within each individual major mode. It was already done within all
  major modes based on prog-mode anyway.
- Add new siren-display-indetation module and function as a central way
  to enable visual indetation guides. This makes switching the
  underlying package at some point in the future much easier.
2020-01-26 18:53:44 +00:00

52 lines
1.4 KiB
EmacsLisp

;;; siren-org-mode.el --- jimeh's Emacs Siren: org-mode configuration.
;;; Commentary:
;; Basic configuration for org-mode.
;;; Code:
(require 'siren-display-indentation)
(require 'siren-fci)
(require 'siren-flyspell)
(require 'siren-linum)
(require 'siren-smartparens)
(use-package org-mode
:ensure nil ;; loaded from emacs built-ins
:bind (:map org-mode-map
("C-j" . newline-and-indent)
("RET" . newline-and-indent)
("M-{" . org-promote-subtree)
("M-}" . org-demote-subtree)
("M-P" . org-metaup)
("M-N" . org-metadown)
("C-M-n" . outline-next-visible-heading)
("C-M-p" . outline-previous-visible-heading))
:hook (org-mode . siren-org-mode-setup)
:custom
(org-export-backends '(ascii html icalendar latex md confluence))
(org-export-with-section-numbers nil)
(org-export-with-sub-superscripts '{})
:init
(defun siren-org-mode-setup ()
(setq fill-column 80
whitespace-action '(auto-cleanup))
(setcar (nthcdr 4 org-emphasis-regexp-components) 20)
(org-set-emph-re 'org-emphasis-regexp-components
org-emphasis-regexp-components)
(linum-mode t)
(flyspell-mode)
(fci-mode)
(siren-display-indentation)
(smartparens-mode +1)
(visual-line-mode +1)
(whitespace-mode +1)))
(provide 'siren-org-mode)
;;; siren-org-mode.el ends here