<<

WESTFÄLISCHE WILHELMS-UNIVERSITÄT MÜNSTER

Emacs with org-mode

living knowledge WWU Münster Christoph Lehrenfeld November 4, 2015 ([email protected]) hitp erned([email protected]) Lehrenfeld Christoph Outline Resources org-mode M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 2 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph Outline Resources org-mode Emacs M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 3 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph mc Mr hn nte editor another than) (More - Emacs history I I I I ihrdmnaysrpiglnug (Mocklisp) language scripting rudimentary with “dtrMCo” ihMaclisp with MACroS”) (“Editor fis N rjc)in project) GNU (first 91 oln:ese mc i C) (in Emacs erster Gosling: 1981, Macros of Collection Greenberg: 1976-1979, Stallman Richard developer: Main 94 tlmn N Emacs GNU Stallman: 1984, M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc Lisp Emacs daetto (dialect lisp ) mc ihorg-mode with Emacs

living knowledge /31 4 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph etrs( few) (a Features I I I I I I I efdcmnig(odmanual-structure) (good self-documenting customizable highly features special for extensions of lots ) . . (games/calendar/shell/. features included of lots languages programming many for support access) (faster/remote mouse of independence - keystrokes terminal-based M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 5 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph etn started Getting t t C-h commands: help -key. - TAB M-x f C-h k C-h b C-h t C-h I I ievdottras hack-emacs eds.) tutorials: similar video (or nice emacs for motivation rather how-to-use, No en rsigControl( pressing means M W W ÜNSTER ESTFÄLISCHE ILHELMS erhbos vial ucin eg kill-emacs) (e.g. functions available search/browse function explains binding key a of command displays bindings key active all shows emacs for tutorial a start -U NIVERSITÄT C n the and ) t kyfloe y(ny the (only) by followed -key mc ihorg-mode with Emacs

living knowledge /31 6 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph ymsl sdfaue (1) features used mostly My I I I ars(euneo omns eodadreplay) and record commands: of (sequence (buffer-type) macros file-type to adapt and functionality add ) . modes: . . replace, mark, (search, features(fast): editor standard M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 7 WWU Münster coding: I I I oplto-oe(ro/annsjm oline) to jump (error/warnings compilation-mode project) a for “buffers” of (set sessions to access ‘jump’ and definitions) words key of (index tags autocompletion, hitp erned([email protected]) Lehrenfeld Christoph ymsl sdfaue (1) features used mostly My coding: I I I I I I oplto-oe(ro/annsjm oline) to jump (error/warnings compilation-mode project) a for “buffers” of (set sessions to access ‘jump’ and definitions) words key of (index tags autocompletion, ars(euneo omns eodadreplay) and record commands: of (sequence (buffer-type) macros file-type to adapt and functionality add ) . modes: . . replace, mark, (search, features(fast): editor standard M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 7 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph ymsl sdfaue (2) features used mostly My latex: I I aes bib-entries..) labels, to (list-access reftex-mode “compilation”, preview-latex, checker) (spell flyspell-mode M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 8 WWU Münster org-mode I I xott tlltxbae/d/akon( orecode) source (/ html/latex/beamer/pdf/markdown to documentation export / talks of preparation / notes taking hitp erned([email protected]) Lehrenfeld Christoph ymsl sdfaue (2) features used mostly My org-mode latex: I I I I xott tlltxbae/d/akon( orecode) source (/ html/latex/beamer/pdf/markdown to documentation export / talks of preparation / notes taking bib-entries..) labels, to (list-access reftex-mode “compilation”, preview-latex, checker) (spell flyspell-mode M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 8 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph sg ffeatures of Usage o ouealteefeatures? these all use to How M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 9 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph hrct/esrksfreverything for shortcuts/keystrokes https://xkcd.com/378/ M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 10 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph yemacs My tdentmte htyu dtri aal of! capable is editor your what matter doesn’t It I I I etrssol epyou help should features documentation good (fast/simple) features of availability M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 11 WWU Münster o oIgtm mc od htIwant? I what do to emacs my get I do How hitp erned([email protected]) Lehrenfeld Christoph yemacs My o oIgtm mc od htIwant? I what do to emacs my get I do How of! capable is editor your what matter doesn’t It I I I etrssol epyou help should features documentation good (fast/simple) features of availability M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 11 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph customization xedbscstig ihconfig-files with settings basic Extend “ via user Preferences Set I I o oId ht? that do I do How commands of) (sequences to keys your Bind M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT - customize-variable M-x ” mc ihorg-mode with Emacs

living knowledge /31 12 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph mc lisp emacs goa-e-e kd"f>)’revert-buffer) "") (kbd (global-set-key goa-e-e kd"-" ’recompile) "M-r") (kbd (global-set-key bindings key I I I I citn agae(ilc to (dialect language scripting ae mc ihycustomizable highly emacs makes in written are files configuration your in written is emacs M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc lisp (and ) mc lisp emacs C ) mc ihorg-mode with Emacs

living knowledge 31 / 13 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph mc lisp emacs sr f e functionality new of) (sort dfnpeuegol () prelude-google (defun Golsaqeyo eini any." if (browse-url region or (interactive) query a "Googles (concat i mark-active (if "http://www.google.com/search?ie=utf-8&oe=utf-8&q=" ra-tig"oge "))))) "Google: (read-string bfe-usrn rgo-einn)(region-end)) (region-beginning) (buffer-substring M W W ÜNSTER ESTFÄLISCHE ILHELMS mr advanced) (more -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 14 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph ihlvlo customization of level high https://xkcd.com/1172/ M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 15 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph oermrso emacs on remarks some I I I I nyadcn editor” lacking decent system, a operating only great “a emacs: loves everybody Not . a ieyb oewt emacs with done be nicely can lisp, (python, ..) languages script for loop) (Read-eval-print REPL ..) (m), (Sublime, there cedet out editors text nice other are There sa D o mc ...) . . (. emacs for IDE an is M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 16 WWU Münster hr r te odeditors good other are There hitp erned([email protected]) Lehrenfeld Christoph M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 17 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph Outline Resources org-mode Emacs M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 18 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph rgnadgoals and Origin I I I I lgn ogmd:Yu iei li text” aims: plain in scientist life a Your as “org-mode: work slogan: and life his organize to 2003 Created Dominik Carsten developer: Original I I I I ouetto suc oe ieaeprogramming) literate code, (source documentation talk!) this (e.g. authoring planning project taking note M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 19 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph anfeatures Main I I I I I I I I smlrt iiwrdbtbetter!) but Wiki-world to (similar nemacs-mode an (org-babel) programming literate lists TODO features spreadsheet hyperlinks note-taking outlining control) (version text plain in everything I ouetto otissuc oewihcnb extracted be can which code source contains documentation M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 20 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph r-oea nemacs-mode an as org-mode Emacs-mode I I I sbudt mc :( emacs to bound is (latex/c++/..) modes other into integrates customizable highly M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 21 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph r-oefie sdocuments as files org-mode xot oHM/ae/emrpfmrdw/... . . HTML/latex/beamer/pdf/markdown/ to Exports Wikis to Similar I I I I I I . . . hyperlinks images latex!) (full formulas tables lists M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 22 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph oetkn example Note-taking M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 23 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph ieaeprogramming Literate rt ouetto rudyu orecode. source your around documentation Write } 4 eunsqrt(x)+sqrt(1-x)+1-2.0*x; return 3 { x) myf(double 2 double 1 I I xrc orecd rmtesm l stedocumentation! the as file same the from code source Extract code source your of documentation Extensive M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 24 WWU Münster okn ihsuc oe(r-ae)(octave) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 25 WWU Münster okn ihsuc oe(r-ae)(octave) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph [eigvec,eigval]=eig(A) [1,3;9,26]; = A code Octave M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 26 WWU Münster h output The ignlMatrix Diagonal = eigval = eigvec 0953-0.11446 -0.94513 0068 0 -0.036986 -0.99343 0.32670 27.036986 0 okn ihsuc oe(r-ae)(octave) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph [eigvec,eigval]=eig(A) [1,3;9,26]; = A code Octave M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT h output The ignlMatrix Diagonal = eigval = eigvec 0953-0.11446 -0.94513 0068 0 -0.036986 -0.99343 0.32670 27.036986 0 mc ihorg-mode with Emacs

living knowledge /31 26 WWU Münster okn ihsuc oe(r-ae)(python) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph + o cd nzip(a,b)] in [c,d] for c+d print(c) [ = c ["baum","truppe","parkschein"] = b ["apfel","gurken","elefanten"] = a code Python M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 27 WWU Münster h output The ’pebu’ gretup’ ’elefantenparkschein’] ’gurkentruppe’, [’apfelbaum’, okn ihsuc oe(r-ae)(python) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph h output The ’pebu’ gretup’ ’elefantenparkschein’] ’gurkentruppe’, [’apfelbaum’, zip(a,b)] in [c,d] for c+d print(c) [ = c ["baum","truppe","parkschein"] = b ["apfel","gurken","elefanten"] = a code Python M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge 31 / 27 WWU Münster okn ihsuc oe(r-ae)(shell) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph rp"oe ae po/pif ed- 1 -n head | /proc/cpuinfo 1 name" -n "model head grep | --version -r emacs -n -o uname code Shell M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 28 WWU Münster h output The oe ae:ItlR oeT)i-30 P 1.90GHz @ CPU i5-4300U Core(TM) Intel(R) : name model 24.5.1 Emacs GNU GNU/Linux 4.1.4-1-ARCH schrustux okn ihsuc oe(r-ae)(shell) (org-babel) code source with Working hitp erned([email protected]) Lehrenfeld Christoph h output The oe ae:ItlR oeT)i-30 P 1.90GHz @ CPU i5-4300U Core(TM) Intel(R) : name model 24.5.1 Emacs GNU GNU/Linux 4.1.4-1-ARCH schrustux 1 -n head | /proc/cpuinfo 1 name" -n "model head grep | --version -r emacs -n -o uname code Shell M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 28 WWU Münster okn ihsuc oe(remarks) code source with Working hitp erned([email protected]) Lehrenfeld Christoph I I I suc oei xcl h aea ntedocumentation!) the in as same the exactly is code (source elsie o uoil rlectures or tutorials for well-suited files several into documentation of export on org-mode in created are result-regions I I export ( demand M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT - C-c C-c ) mc ihorg-mode with Emacs

living knowledge 31 / 29 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph Outline Resources org-mode Emacs M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 30 WWU Münster hitp erned([email protected]) Lehrenfeld Christoph links/references I I I both: org-mode emacs I I I akeas(otb uoil o emacs/org-mode) for tutorials (youtube hack-emacs http://orgmode.org/manual/ https://www.gnu.org/software/emacs/ M W W ÜNSTER ESTFÄLISCHE ILHELMS -U NIVERSITÄT mc ihorg-mode with Emacs

living knowledge /31 31 WWU Münster