X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.emacs;h=9d95223d256d4cf4f3ca51f3e4a39e9ce3d8fa29;hb=d071cd17b8e979018f8726976248f2bdbddb3355;hp=d28fe5472c6ced8c8c5f0563c622d77548687f1e;hpb=6396c1f855705d692d12284a0f573961828567c9;p=emacs.git diff --git a/.emacs b/.emacs index d28fe54..9d95223 100644 --- a/.emacs +++ b/.emacs @@ -98,6 +98,7 @@ "~/projects/sysadmin/sndservers/sndservers.org" "~/projects/chaim/chaim.org" "~/projects/chaim/papers/gwas_paper_2012/gwas_paper.org" + "~/projects/reviews/reviews.org" "~/projects/fh/fh.org"))) (setq org-global-properties '(("Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00"))) @@ -134,6 +135,10 @@ (add-hook 'org-clock-out-hook 'bh/remove-empty-drawer-on-clock-out 'append) +; resolve clocks after 10 minutes of idle; use xprintidle +(setq org-clock-idle-time 10) +(setq org-clock-x11idle-program-name "xprintidle") + ; this is from http://doc.norang.ca/org-mode.html#Capture ; use C-M-r for org mode capture (global-set-key (kbd "C-M-r") 'org-capture) @@ -289,12 +294,13 @@ Argument DESCRIPTION MIME description." cperl-auto-newline nil cperl-auto-newline-after-colon nil cperl-continued-statement-offset 4 - cperl-brace-offset -4 + cperl-brace-offset -1 cperl-continued-brace-offset 0 cperl-label-offset -4 cperl-highlight-variables-indiscriminately t cperl-electric-lbrace-space nil - cperl-indent-parens-as-block t + cperl-indent-parens-as-block nil + cperl-close-paren-offset -1 cperl-tab-always-indent t) ;(add-hook 'cperl-mode-hook (lambda () (cperl-set-style "PerlStyle"))) @@ -672,6 +678,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 +766,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")