From ee903f3feefe6efc358c0e0bbc750dd7a7267347 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 17 Feb 2017 21:46:13 +0100 Subject: [PATCH] update org-mode Signed-off-by: Andreas Gerler --- bba.org | 390 +- elpa/org-20161118/org-pkg.el | 3 - elpa/{org-20161118 => org-20170210}/COPYING | 0 .../README_ELPA | 0 elpa/{org-20161118 => org-20170210}/dir | 0 .../etc/ORG-NEWS | 2 +- .../etc/styles/OrgOdtContentTemplate.xml | 0 .../etc/styles/OrgOdtStyles.xml | 0 .../etc/styles/README | 0 elpa/{org-20161118 => org-20170210}/ob-C.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-J.el | 4 +- elpa/{org-20161118 => org-20170210}/ob-R.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-abc.el | 2 +- .../ob-asymptote.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-awk.el | 2 +- .../{org-20161118 => org-20170210}/ob-calc.el | 2 +- .../ob-clojure.el | 2 +- .../ob-comint.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-coq.el | 2 +- .../{org-20161118 => org-20170210}/ob-core.el | 8 +- elpa/{org-20161118 => org-20170210}/ob-css.el | 2 +- .../ob-ditaa.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-dot.el | 2 +- .../{org-20161118 => org-20170210}/ob-ebnf.el | 2 +- .../ob-emacs-lisp.el | 2 +- .../{org-20161118 => org-20170210}/ob-eval.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-exp.el | 4 +- .../ob-forth.el | 2 +- .../ob-fortran.el | 2 +- .../ob-gnuplot.el | 2 +- .../ob-groovy.el | 2 +- .../ob-haskell.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-io.el | 2 +- .../{org-20161118 => org-20170210}/ob-java.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-js.el | 4 +- .../{org-20161118 => org-20170210}/ob-keys.el | 2 +- .../ob-latex.el | 2 +- .../ob-ledger.el | 2 +- .../ob-lilypond.el | 2 +- .../{org-20161118 => org-20170210}/ob-lisp.el | 4 +- elpa/{org-20161118 => org-20170210}/ob-lob.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-lua.el | 2 +- .../ob-makefile.el | 2 +- .../ob-matlab.el | 2 +- .../ob-maxima.el | 2 +- .../ob-mscgen.el | 2 +- .../ob-ocaml.el | 2 +- .../ob-octave.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-org.el | 2 +- .../{org-20161118 => org-20170210}/ob-perl.el | 2 +- .../ob-picolisp.el | 2 +- .../ob-plantuml.el | 2 +- .../ob-processing.el | 2 +- .../ob-python.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-ref.el | 2 +- .../{org-20161118 => org-20170210}/ob-ruby.el | 17 +- .../{org-20161118 => org-20170210}/ob-sass.el | 2 +- .../ob-scala.el | 2 +- .../ob-scheme.el | 2 +- .../ob-screen.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-sed.el | 2 +- .../ob-shell.el | 30 +- .../{org-20161118 => org-20170210}/ob-shen.el | 2 +- elpa/{org-20161118 => org-20170210}/ob-sql.el | 3 +- .../ob-sqlite.el | 2 +- .../{org-20161118 => org-20170210}/ob-stan.el | 2 +- .../ob-table.el | 2 +- .../ob-tangle.el | 175 +- elpa/{org-20161118 => org-20170210}/ob.el | 2 +- elpa/{org-20161118 => org-20170210}/org | 4131 ++++++++--------- .../org-agenda.el | 604 +-- .../org-archive.el | 2 +- .../org-attach.el | 8 +- .../org-autoloads.el | 18 +- .../org-bbdb.el | 2 +- .../org-bibtex.el | 4 +- .../org-capture.el | 181 +- .../org-clock.el | 150 +- .../org-colview.el | 168 +- .../org-compat.el | 10 +- .../org-crypt.el | 8 +- .../org-ctags.el | 2 +- .../org-datetree.el | 2 +- .../org-docview.el | 2 +- .../org-element.el | 95 +- .../org-entities.el | 2 +- .../org-eshell.el | 2 +- .../{org-20161118 => org-20170210}/org-eww.el | 2 +- .../org-faces.el | 10 +- .../org-feed.el | 2 +- .../org-footnote.el | 2 +- .../org-gnus.el | 2 +- .../org-habit.el | 2 +- elpa/{org-20161118 => org-20170210}/org-id.el | 2 +- .../org-indent.el | 2 +- .../org-info.el | 43 +- .../org-inlinetask.el | 2 +- .../org-install.el | 0 .../{org-20161118 => org-20170210}/org-irc.el | 2 +- .../org-lint.el | 2 +- .../org-list.el | 18 +- .../org-loaddefs.el | 110 +- .../org-macro.el | 2 +- .../org-macs.el | 10 +- .../{org-20161118 => org-20170210}/org-mhe.el | 2 +- .../org-mobile.el | 59 +- .../org-mouse.el | 2 +- .../org-pcomplete.el | 2 +- elpa/org-20170210/org-pkg.el | 3 + .../org-plot.el | 2 +- .../org-protocol.el | 2 +- .../org-rmail.el | 2 +- .../{org-20161118 => org-20170210}/org-src.el | 37 +- .../org-table.el | 36 +- .../org-timer.el | 4 +- .../org-version.el | 4 +- .../{org-20161118 => org-20170210}/org-w3m.el | 2 +- elpa/{org-20161118 => org-20170210}/org.el | 1087 ++--- .../orgcard.pdf | Bin 118264 -> 119383 bytes .../ox-ascii.el | 131 +- .../ox-beamer.el | 66 +- .../{org-20161118 => org-20170210}/ox-html.el | 96 +- .../ox-icalendar.el | 10 +- .../ox-latex.el | 247 +- elpa/{org-20161118 => org-20170210}/ox-man.el | 10 +- elpa/{org-20161118 => org-20170210}/ox-md.el | 6 +- elpa/{org-20161118 => org-20170210}/ox-odt.el | 43 +- elpa/{org-20161118 => org-20170210}/ox-org.el | 2 +- .../ox-publish.el | 105 +- .../ox-texinfo.el | 15 +- elpa/{org-20161118 => org-20170210}/ox.el | 217 +- init.el | 7 +- 132 files changed, 4340 insertions(+), 4209 deletions(-) delete mode 100644 elpa/org-20161118/org-pkg.el rename elpa/{org-20161118 => org-20170210}/COPYING (100%) rename elpa/{org-20161118 => org-20170210}/README_ELPA (100%) rename elpa/{org-20161118 => org-20170210}/dir (100%) rename elpa/{org-20161118 => org-20170210}/etc/ORG-NEWS (99%) rename elpa/{org-20161118 => org-20170210}/etc/styles/OrgOdtContentTemplate.xml (100%) rename elpa/{org-20161118 => org-20170210}/etc/styles/OrgOdtStyles.xml (100%) rename elpa/{org-20161118 => org-20170210}/etc/styles/README (100%) rename elpa/{org-20161118 => org-20170210}/ob-C.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-J.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-R.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-abc.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-asymptote.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-awk.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-calc.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-clojure.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-comint.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-coq.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-core.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-css.el (96%) rename elpa/{org-20161118 => org-20170210}/ob-ditaa.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-dot.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-ebnf.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-emacs-lisp.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-eval.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-exp.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-forth.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-fortran.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-gnuplot.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-groovy.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-haskell.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-io.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-java.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-js.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-keys.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-latex.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-ledger.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-lilypond.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-lisp.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-lob.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-lua.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-makefile.el (96%) rename elpa/{org-20161118 => org-20170210}/ob-matlab.el (95%) rename elpa/{org-20161118 => org-20170210}/ob-maxima.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-mscgen.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-ocaml.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-octave.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-org.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-perl.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-picolisp.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-plantuml.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-processing.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-python.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-ref.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-ruby.el (95%) rename elpa/{org-20161118 => org-20170210}/ob-sass.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-scala.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-scheme.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-screen.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-sed.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-shell.el (92%) rename elpa/{org-20161118 => org-20170210}/ob-shen.el (97%) rename elpa/{org-20161118 => org-20170210}/ob-sql.el (99%) rename elpa/{org-20161118 => org-20170210}/ob-sqlite.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-stan.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-table.el (98%) rename elpa/{org-20161118 => org-20170210}/ob-tangle.el (85%) rename elpa/{org-20161118 => org-20170210}/ob.el (95%) rename elpa/{org-20161118 => org-20170210}/org (91%) rename elpa/{org-20161118 => org-20170210}/org-agenda.el (96%) rename elpa/{org-20161118 => org-20170210}/org-archive.el (99%) rename elpa/{org-20161118 => org-20170210}/org-attach.el (99%) rename elpa/{org-20161118 => org-20170210}/org-autoloads.el (98%) rename elpa/{org-20161118 => org-20170210}/org-bbdb.el (99%) rename elpa/{org-20161118 => org-20170210}/org-bibtex.el (99%) rename elpa/{org-20161118 => org-20170210}/org-capture.el (95%) rename elpa/{org-20161118 => org-20170210}/org-clock.el (96%) rename elpa/{org-20161118 => org-20170210}/org-colview.el (94%) rename elpa/{org-20161118 => org-20170210}/org-compat.el (98%) rename elpa/{org-20161118 => org-20170210}/org-crypt.el (97%) rename elpa/{org-20161118 => org-20170210}/org-ctags.el (99%) rename elpa/{org-20161118 => org-20170210}/org-datetree.el (99%) rename elpa/{org-20161118 => org-20170210}/org-docview.el (98%) rename elpa/{org-20161118 => org-20170210}/org-element.el (99%) rename elpa/{org-20161118 => org-20170210}/org-entities.el (99%) rename elpa/{org-20161118 => org-20170210}/org-eshell.el (97%) rename elpa/{org-20161118 => org-20170210}/org-eww.el (99%) rename elpa/{org-20161118 => org-20170210}/org-faces.el (98%) rename elpa/{org-20161118 => org-20170210}/org-feed.el (99%) rename elpa/{org-20161118 => org-20170210}/org-footnote.el (99%) rename elpa/{org-20161118 => org-20170210}/org-gnus.el (99%) rename elpa/{org-20161118 => org-20170210}/org-habit.el (99%) rename elpa/{org-20161118 => org-20170210}/org-id.el (99%) rename elpa/{org-20161118 => org-20170210}/org-indent.el (99%) rename elpa/{org-20161118 => org-20170210}/org-info.el (76%) rename elpa/{org-20161118 => org-20170210}/org-inlinetask.el (99%) rename elpa/{org-20161118 => org-20170210}/org-install.el (100%) rename elpa/{org-20161118 => org-20170210}/org-irc.el (99%) rename elpa/{org-20161118 => org-20170210}/org-lint.el (99%) rename elpa/{org-20161118 => org-20170210}/org-list.el (99%) rename elpa/{org-20161118 => org-20170210}/org-loaddefs.el (96%) rename elpa/{org-20161118 => org-20170210}/org-macro.el (99%) rename elpa/{org-20161118 => org-20170210}/org-macs.el (98%) rename elpa/{org-20161118 => org-20170210}/org-mhe.el (99%) rename elpa/{org-20161118 => org-20170210}/org-mobile.el (96%) rename elpa/{org-20161118 => org-20170210}/org-mouse.el (99%) rename elpa/{org-20161118 => org-20170210}/org-pcomplete.el (99%) create mode 100644 elpa/org-20170210/org-pkg.el rename elpa/{org-20161118 => org-20170210}/org-plot.el (99%) rename elpa/{org-20161118 => org-20170210}/org-protocol.el (99%) rename elpa/{org-20161118 => org-20170210}/org-rmail.el (98%) rename elpa/{org-20161118 => org-20170210}/org-src.el (98%) rename elpa/{org-20161118 => org-20170210}/org-table.el (99%) rename elpa/{org-20161118 => org-20170210}/org-timer.el (99%) rename elpa/{org-20161118 => org-20170210}/org-version.el (89%) rename elpa/{org-20161118 => org-20170210}/org-w3m.el (99%) rename elpa/{org-20161118 => org-20170210}/org.el (97%) rename elpa/{org-20161118 => org-20170210}/orgcard.pdf (60%) rename elpa/{org-20161118 => org-20170210}/ox-ascii.el (95%) rename elpa/{org-20161118 => org-20170210}/ox-beamer.el (95%) rename elpa/{org-20161118 => org-20170210}/ox-html.el (98%) rename elpa/{org-20161118 => org-20170210}/ox-icalendar.el (99%) rename elpa/{org-20161118 => org-20170210}/ox-latex.el (96%) rename elpa/{org-20161118 => org-20170210}/ox-man.el (99%) rename elpa/{org-20161118 => org-20170210}/ox-md.el (99%) rename elpa/{org-20161118 => org-20170210}/ox-odt.el (99%) rename elpa/{org-20161118 => org-20170210}/ox-org.el (99%) rename elpa/{org-20161118 => org-20170210}/ox-publish.el (94%) rename elpa/{org-20161118 => org-20170210}/ox-texinfo.el (99%) rename elpa/{org-20161118 => org-20170210}/ox.el (98%) diff --git a/bba.org b/bba.org index 983ec33a..08adf524 100644 --- a/bba.org +++ b/bba.org @@ -33,7 +33,7 @@ To be precise, this is what's in the first part of my =~/.emacs.d/init.el= (what load-path)) - (add-to-list 'load-path "~/.emacs/elpa/org-20160711") + (add-to-list 'load-path "~/.emacs/elpa/org-20170210") ;; (add-to-list 'load-path "~/elisp/org-mode/contrib/lisp") ;; Load the rest of the packages @@ -62,7 +62,7 @@ If you are in need enable debugging: * run in servermode -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'server) (unless (server-running-p) (server-start)) @@ -73,7 +73,7 @@ If you are in need enable debugging: No need for that: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setq inhibit-startup-screen t) #+END_SRC @@ -93,7 +93,7 @@ Some aliases you might want to set in your bash to talk to your Emacs server: If running standalone on OSX we need to get some environment variables from bash. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setenv "EDITOR" "emacsclient") (if (string-equal system-type "darwin") @@ -149,13 +149,13 @@ from bash. We don't need a =$PAGER= in Emacs: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setenv "PAGER" "cat") #+END_SRC Want to have some [[http://www.emacswiki.org/emacs/EshellAlias][shell aliases]], right? -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defalias 'e 'find-file) (defalias 'ff 'find-file) (defalias 'emacs 'find-file) @@ -163,7 +163,7 @@ Want to have some [[http://www.emacswiki.org/emacs/EshellAlias][shell aliases]], Some of my favorite bash aliases, can be even more helpful in Eshell. Like ‘ll’: - #+BEGIN_SRC elisp + #+BEGIN_SRC elisp :tangle yes (add-hook 'eshell-mode-hook (lambda () ;; The 'ls' executable requires the Gnu version on the Mac @@ -175,7 +175,7 @@ Some of my favorite bash aliases, can be even more helpful in Eshell. Like ‘ll What about =gd= to call the Diff command? - #+BEGIN_SRC elisp + #+BEGIN_SRC elisp :tangle yes (defalias 'gd 'magit-diff-unstaged) (defalias 'gds 'magit-diff-staged) #+END_SRC @@ -185,7 +185,7 @@ What about =gd= to call the Diff command? I like to commit my notes in my org and workorg folders after a days work. Keep track of your important stuff! -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes ;; define function to shutdown emacs server instance (defun server-shutdown () @@ -206,7 +206,7 @@ Keep track of your important stuff! #+END_SRC * async -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/async-20161103.1036") @@ -217,7 +217,7 @@ Keep track of your important stuff! * [[http://www.emacswiki.org/emacs/ELPA][ELPA]] -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa") @@ -242,7 +242,7 @@ Keep track of your important stuff! For annotated tags prepare message with commit messages since last tag. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'magit) (setq magit-last-seen-setup-instructions "1.4.0") (define-key magit-mode-map (kbd "") 'ffap) @@ -267,7 +267,7 @@ For annotated tags prepare message with commit messages since last tag. focus on the important stuff. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/focus-20160111.522") @@ -278,7 +278,7 @@ focus on the important stuff. * fullframe open ibuffer and magit-status in fullframe mode. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/fullframe-20160209.2318") @@ -294,7 +294,7 @@ open ibuffer and magit-status in fullframe mode. Get undo for your window layout. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (winner-mode 1)) #+END_SRC @@ -305,7 +305,7 @@ Enable smart parens in all modes. See [[https://github.com/toctan/smartparens][Smartparens on github]]. Some key bindings taken from [[https://ebzzry.github.io/emacs-pairs.html][emacs-pairs]]. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/smartparens-20160217.1102") @@ -350,7 +350,7 @@ Highlight delimiters such as parentheses, brackets or braces according to their depth. But we use it only in graphical mode as text mode lacks color depth. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (when (display-graphic-p) (add-to-list 'load-path "~/.emacs.d/elpa/rainbow-delimiters-20150320.17") @@ -375,7 +375,7 @@ search the web on your fingertips. C-c /. |---+-------------| -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (require 'engine-mode) @@ -438,7 +438,7 @@ search the web on your fingertips. C-c /. * expand-region [2015-04-02 Thu 10:32] -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/expand-region-20150525.205") @@ -457,7 +457,8 @@ snippets. Some help for Perl and even for org-mode. Thought about using snippets for shell-mode and eshell-mode? snippets for =aws cli= are awesome! =ha-autoinsert-yas-expand= copied from Howard Abrams. -#+BEGIN_SRC emacs-lisp + +#+BEGIN_SRC emacs-lisp :tangle yes (add-to-list 'load-path "~/.emacs.d/elpa/yasnippet-20161110.1226") (require 'yasnippet) @@ -484,7 +485,7 @@ snippets for =aws cli= are awesome! #+END_SRC From http://emacswiki.org/emacs/Yasnippet -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle yes (if (>= emacs-major-version 24) (defun yas-shk-helm-prompt (prompt choices &optional display-fn) "Use helm to select a snippet. Put this into `yas/prompt-functions.'" @@ -509,13 +510,13 @@ From http://emacswiki.org/emacs/Yasnippet Default to snippet-mode if we are in a sub directory of snippets: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (add-to-list 'auto-mode-alist '("\\.emacs.d/snippets/[^/]*/" . snippet-mode)) #+END_SRC We use lisp in our snippets. So suppress warnings for that: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (add-to-list 'warning-suppress-types '(yasnippet backquote-change)) #+END_SRC @@ -525,14 +526,14 @@ We use lisp in our snippets. So suppress warnings for that: I use yasnippet for sql a lot. Languages differ and I need different templates. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (define-derived-mode sql-oracle-mode sql-mode "OracleSQL" "Major mode for ORACLE SQL" (setq sql-product 'oracle) ) #+END_SRC -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (define-derived-mode sql-vertica-mode sql-mode "VerticaSQL" "Major mode for Vertica" (setq sql-product 'ansi) @@ -540,7 +541,7 @@ Languages differ and I need different templates. #+END_SRC -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (define-derived-mode sql-mysql-mode sql-mode "MySQL" "Major mode for MySQL" (setq sql-product 'mysql) @@ -553,7 +554,7 @@ Languages differ and I need different templates. modified puppet-lint definition to include no-80chars-check and fixed log-format. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/flycheck-20160218.41") @@ -606,7 +607,7 @@ Probably the best help to keep track of the not every day used keybindings. Hide passwords on the screen from shoulder surfing. Single pipes interfere with org tables. Just go double. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (load-file (expand-file-name "~/.emacs.d/lisp/hidepw.el")) (add-hook 'org-mode-hook 'hidepw-mode) (setq hidepw-pattern "||\\(.*\\)||") @@ -616,7 +617,7 @@ Single pipes interfere with org tables. Just go double. Use [[http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example][orgtbl]] to create tables. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setq tex-dvi-view-command "(f=*; pdflatex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")") (setq TeX-auto-save t) (setq TeX-parse-self t) @@ -633,7 +634,7 @@ Use [[http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example][orgtbl]] t * thesaurus -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes ;; The file names are absolute, not relative, locations ;; - e.g. /foobar/mthesaur.txt.cache, not mthesaur.txt.cache (setq synonyms-file "~/.emacs.d/mthesaur.txt") @@ -647,7 +648,7 @@ Use [[http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example][orgtbl]] t Adjust indentation at work. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes ;; load yaml-mode ;; (require 'yaml-mode) ;; (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) @@ -662,7 +663,7 @@ Adjust indentation at work. * highlight indentation [2016-10-09 Sun 17:13] -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (load-file (expand-file-name "~/.emacs.d/lisp/highlight-indentation.el")) (set-face-background 'highlight-indentation-face "#e3e3d3") (set-face-background 'highlight-indentation-current-column-face "#c3b3b3") @@ -671,7 +672,7 @@ Adjust indentation at work. To get syntax highlight for HTML exports: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (require 'htmlize ) @@ -683,7 +684,7 @@ To get syntax highlight for HTML exports: * vc-git -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'vc-git) (when (featurep 'vc-git) (add-to-list 'vc-handled-backends 'git)) @@ -694,7 +695,7 @@ To get syntax highlight for HTML exports: Replaced the deprecated [[https://github.com/winterTTr/ace-jump-mode][ace-jump-mode]] with [[help:avy-goto-char][avy-goto-char]] and [[help:goto-line][goto-line]] with [[help:avy-goto-line][avy-goto-line]]. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (add-to-list 'load-path "~/.emacs.d/elpa/avy-20160202.2357") (require 'avy) (define-key global-map (kbd "C-c C-@") 'avy-goto-word-1) @@ -718,7 +719,7 @@ with [[help:avy-goto-line][avy-goto-line]]. I still like ido-find-file. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (ido-mode t) (setq ido-enable-prefix nil ido-enable-flex-matching t @@ -742,7 +743,7 @@ I still like ido-find-file. * visual-regexp -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (progn (require 'visual-regexp) @@ -760,7 +761,7 @@ It's worth to use Emacs for org-mode alone. [[http://howardism.org/Technical/Emacs/literate-devops.html][Literate DevOps]] and [[http://www.howardism.org/Technical/Emacs/literate-database.html][Literate Database Work]] are only 2 use cases. With [[https://github.com/fniessen/org-html-themes.git][org html themes]] it's easy to generate beautiful output. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'ox-md nil t) #+END_SRC @@ -768,7 +769,7 @@ With [[https://github.com/fniessen/org-html-themes.git][org html themes]] it's e Some extra functionality from the org package repository. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle no (if (>= emacs-major-version 24) (progn (add-to-list 'load-path "~/.emacs.d/elpa/org-plus-contrib-20150831" t) @@ -793,7 +794,7 @@ javascript:location.href='org-protocol://capture:/l/'%20+%20encodeURIComponent(l #+END_SRC -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'org-protocol) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) @@ -834,7 +835,7 @@ blocks with Org Babel. This package is a direct result of attempting to answer a question on this [[http://emacs.stackexchange.com/q/26374/10625][emacs.stackexchange.com thread]]. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (require 'ob-applescript) #+END_SRC @@ -843,14 +844,14 @@ this [[http://emacs.stackexchange.com/q/26374/10625][emacs.stackexchange.com thr Org-mode export backend for JIRA markup -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (if (>= emacs-major-version 24) (require 'ox-jira)) #+END_SRC We are lazy and want to speed up things: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-org-export-jira-clipboard() "narrow to org subtree and store content in jira format in clipboard." (interactive) @@ -871,7 +872,7 @@ the jira ticket. Of course some boiler plate for the poor souls who never heard of orgmode. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-export-jira-org() "export current narrowed view to file in tmp and open a finder window on OS-X." (interactive) @@ -903,7 +904,7 @@ never heard of orgmode. ** bba-ox-clip-formatted-copy [2016-12-13 Tue 15:29] -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-ox-clip-formatted-copy() "wrapper for ox-clip-formatted-copy to disable org-export-babel-evaluate." (interactive) @@ -916,12 +917,11 @@ never heard of orgmode. ** Some initial languages we want org-babel to support -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (org-babel-do-load-languages 'org-babel-load-languages '( - (sh . t) (shell . t) (python . t) (R . t) @@ -955,7 +955,7 @@ never heard of orgmode. Very useful for repetitive literate devops jobs. then and so on. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (add-hook 'org-mode-hook (lambda () @@ -975,7 +975,7 @@ Very useful for repetitive literate devops jobs. This is helpful in training sessions. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-copy-org-src-block() "copy last org src block and insert it at point." (interactive) @@ -1042,7 +1042,7 @@ example what you will have finally: Here is the code: -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-org-tmux-capture-pane() "capture pane of tmux window and insert it as org-mode sh src block." (interactive) @@ -1091,7 +1091,7 @@ As a replacement you can use this function. Select the start and end points where you want to have ascii arrows and call this function. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defun bba-insert-arrows() "insert ascii arrows at start and end of selection." (interactive) @@ -1106,7 +1106,7 @@ and call this function. ** Define some shortcuts to access major org files. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (global-set-key (kbd "C-c ") '(lambda () (interactive) (find-file "~/org/notes.org"))) @@ -1132,7 +1132,7 @@ and call this function. ** Tag tasks with GTD contexts -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setq org-tag-alist '(("@work" . ?b) ("@home" . ?h) ("@errands" . ?e) @@ -1144,7 +1144,7 @@ and call this function. #+END_SRC -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes ;; (setq org-clock-persist 'history) (org-clock-persistence-insinuate) @@ -1192,7 +1192,7 @@ and call this function. ** Define some handy link abbreviations -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (setq org-link-abbrev-alist '( ("bing" . "http://www.bing.com/search?q=%sform=OSDSRC") @@ -1213,7 +1213,7 @@ and call this function. ** Some clock stuff. taken from http://doc.norang.ca/org-mode.org -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes ;; @@ -1462,7 +1462,7 @@ to embed videos, they give you the entire iframe HTML code to use, but this wouldn’t really be Emacs if we couldn’t make things just a little bit easier. -#+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp :tangle yes (defvar yt-iframe-format ;; You may want to change your width and height. (concat "