Enable org pretty entities, use view-mode in read only buffers
Remap upcase and downcase commands to dwim variants
This commit is contained in:
parent
3126e5c23b
commit
ff2ae5c92e
12
init.el
12
init.el
|
@ -68,6 +68,10 @@
|
|||
;; Make shebang (#!) file executable when saved
|
||||
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
|
||||
|
||||
;; Remap `upcase-word' and `downcase-word' to DWIM versions
|
||||
(keymap-global-set "<remap> <upcase-word>" 'upcase-dwim)
|
||||
(keymap-global-set "<remap> <downcase-word>" 'downcase-dwim)
|
||||
|
||||
(setq backup-directory-alist '(("." . "~/.local/state/emacs/backups")))
|
||||
|
||||
(savehist-mode +1)
|
||||
|
@ -225,12 +229,6 @@
|
|||
"Pulse the current line."
|
||||
(pulse-momentary-highlight-one-line (point)))
|
||||
|
||||
(dolist (command '(scroll-up-command
|
||||
scroll-down-command
|
||||
recenter-top-bottom
|
||||
other-window))
|
||||
(advice-add command :after #'pulse-line))
|
||||
|
||||
(use-package base16-theme
|
||||
:demand
|
||||
:defines (base16-one-light-theme-colors
|
||||
|
@ -392,6 +390,7 @@
|
|||
(org-directory "~/Documents/org")
|
||||
(org-default-notes-file (expand-file-name "notes.org" org-directory))
|
||||
(org-hide-emphasis-markers nil)
|
||||
(org-pretty-entities t)
|
||||
(org-pretty-entities-include-sub-superscripts t)
|
||||
(org-fontify-done-headline t)
|
||||
(org-fontify-todo-headline t)
|
||||
|
@ -1041,6 +1040,7 @@ Calls `project-remember-projects-under' for ~/Projects/"
|
|||
|
||||
(use-package files
|
||||
:custom
|
||||
(view-read-only t)
|
||||
(enable-remote-dir-locals t))
|
||||
|
||||
(use-package tramp
|
||||
|
|
Loading…
Reference in a new issue