From c4da6555912fd8655673ee3d3404c52eec053384 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 29 Oct 2013 10:33:24 -0700 Subject: [PATCH] add sql indent load and ignore headers in org mode latex export --- .emacs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs b/.emacs index d28fe54..3b1d273 100644 --- a/.emacs +++ b/.emacs @@ -672,6 +672,14 @@ Argument DESCRIPTION MIME description." (add-hook 'org-latex-after-initial-vars-hook 'my-auto-tex-parameters) +; support ignoring headers in org mode export to latex +; from http://article.gmane.org/gmane.emacs.orgmode/67692 +(defadvice org-latex-headline (around my-latex-skip-headlines + (headline contents info) activate) + (if (member "ignoreheading" (org-element-property :tags headline)) + (setq ad-return-value contents) + ad-do-it)) + ; debian stuff (setq-default debian-changelog-mailing-address "don@debian.org") (setq-default debian-changelog-full-name "Don Armstrong") @@ -752,6 +760,10 @@ want to use in the modeline *in lieu of* the original.") (setq flymake-mode-line mode-line) (force-mode-line-update))) +; load sql-indent when sql is loaded +(eval-after-load "sql" + '(load-library "sql-indent")) + ; fix up tmux xterm keys ; stolen from http://unix.stackexchange.com/questions/24414/shift-arrow-not-working-in-emacs-within-tmux (if (getenv "TMUX") -- 2.39.2