fix: remove auto-alignment of tags, tangle prompt

* I was almost always answering no to the prompt. Better to do it
  manually, then.
* The auto-alignment was resulting in garbage changes in each commit,
  probably because of an interaction with nameless-mode
This commit is contained in:
contrapunctus 2021-07-06 23:38:06 +05:30
parent 5620d87e31
commit 103521be88
1 changed files with 1 additions and 14 deletions

View File

@ -20,17 +20,4 @@
(org-html-head
. (concat "<link rel=\"stylesheet\" "
"type=\"text/css\" "
"href=\"../org-doom-molokai.css\" />"))
(eval
. (add-hook
'after-save-hook
(lambda ()
(let ((fn (buffer-file-name)))
(when (y-or-n-p (format "Tangle file %s?" fn))
(compile
(mapconcat #'shell-quote-argument
`("emacs" "-q" "-Q" "--batch" "--eval=(require 'ob-tangle)"
,(format "--eval=(org-babel-tangle-file \"%s\")" fn))
" ")))))
nil t))
(eval . (add-hook 'before-save-hook (lambda nil (org-align-all-tags)) nil t)))))
"href=\"../org-doom-molokai.css\" />")))))