Emacs: org: Replace show-all in hook with variable;

Mark org-confirm-babel-evaluate as safe.
This commit is contained in:
tastytea 2020-07-28 23:40:54 +02:00
parent 9e0036a1b2
commit 012a025d8d
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-07-08T18:14:32+0200>
;; Time-stamp: <2020-07-28T23:40:41+0200>
;;; Commentary:
@ -109,15 +109,17 @@
:defines (org-default-notes-file)
:commands (org-mode)
:custom ((org-support-shift-select t) ; Make shift behave normally on text.
(org-default-notes-file "~/notes.org"))
(org-default-notes-file "~/notes.org")
(org-startup-folded nil))
:config (progn (set-face-attribute 'org-level-1 nil :height 1.4)
(set-face-attribute 'org-level-2 nil :height 1.2)
(org-babel-do-load-languages 'org-babel-load-languages
'((emacs-lisp . t)
(shell . t)
(C .t)))
(add-to-list 'org-modules 'org-tempo)) ; Templates (<s).
:hook (org-mode . org-show-all)
(add-to-list 'org-modules 'org-tempo) ; Templates (<s).
(put 'org-confirm-babel-evaluate
'safe-local-variable #'booleanp))
:bind (("C-c o" . (lambda () (interactive) ; Open notes.
(find-file org-default-notes-file)))
(:map org-mode-map ; Remove some annoying keybindings.