Emacs: org: Replace show-all in hook with variable;
Mark org-confirm-babel-evaluate as safe.
This commit is contained in:
parent
9e0036a1b2
commit
012a025d8d
|
@ -1,6 +1,6 @@
|
||||||
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -109,15 +109,17 @@
|
||||||
:defines (org-default-notes-file)
|
:defines (org-default-notes-file)
|
||||||
:commands (org-mode)
|
:commands (org-mode)
|
||||||
:custom ((org-support-shift-select t) ; Make shift behave normally on text.
|
: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)
|
:config (progn (set-face-attribute 'org-level-1 nil :height 1.4)
|
||||||
(set-face-attribute 'org-level-2 nil :height 1.2)
|
(set-face-attribute 'org-level-2 nil :height 1.2)
|
||||||
(org-babel-do-load-languages 'org-babel-load-languages
|
(org-babel-do-load-languages 'org-babel-load-languages
|
||||||
'((emacs-lisp . t)
|
'((emacs-lisp . t)
|
||||||
(shell . t)
|
(shell . t)
|
||||||
(C .t)))
|
(C .t)))
|
||||||
(add-to-list 'org-modules 'org-tempo)) ; Templates (<s).
|
(add-to-list 'org-modules 'org-tempo) ; Templates (<s).
|
||||||
:hook (org-mode . org-show-all)
|
(put 'org-confirm-babel-evaluate
|
||||||
|
'safe-local-variable #'booleanp))
|
||||||
:bind (("C-c o" . (lambda () (interactive) ; Open notes.
|
:bind (("C-c o" . (lambda () (interactive) ; Open notes.
|
||||||
(find-file org-default-notes-file)))
|
(find-file org-default-notes-file)))
|
||||||
(:map org-mode-map ; Remove some annoying keybindings.
|
(:map org-mode-map ; Remove some annoying keybindings.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user