Skip to content

Instantly share code, notes, and snippets.

View kaushalmodi's full-sized avatar

Kaushal Modi kaushalmodi

View GitHub Profile
(package-initialize) ; Do not delete this line
(provide 'my-package-setup)
ace-window-20160225.819
adaptive-wrap-0.5
ag-20160321.1606
aggressive-indent-20160426.927
all-1.0
all-ext-20130824.506
ample-theme-20150814.1101
anzu-20160404.2218
archives
ascii-art-to-unicode-1.9
Debugger entered: nil
(progn (debug))
(if (or (eq feature (quote finder-inf)) (and (stringp filename) (string-match-p "finder-inf" filename))) (progn (debug)))
(lambda (feature &optional filename _noerror) (if (or (eq feature (quote finder-inf)) (and (stringp filename) (string-match-p "finder-inf" filename))) (progn (debug))) (message "feature: %S" feature) (message "filename: %S" filename))(finder-inf nil t)
apply((lambda (feature &optional filename _noerror) (if (or (eq feature (quote finder-inf)) (and (stringp filename) (string-match-p "finder-inf" filename))) (progn (debug))) (message "feature: %S" feature) (message "filename: %S" filename)) (finder-inf nil t))
require(finder-inf nil t)
package--build-compatibility-table()
package-initialize()
eval-buffer(#<buffer *load*-296204> nil "/data/data/com.termux/files/home/.emacs.d/my-package-setup.el" nil t) ; Reading at buffer position 21
load-with-code-conversion("/data/data/com.termux/files/home/.emacs.d/my-package-setup.el" "/data/data/c
Loading loadup.el (source)...
Using load-path (/data/data/com.termux/files/usr/share/emacs/25.0.93/lisp /data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/emacs-lisp /data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/language /data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/international /data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/textmodes /data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/vc)
Loading emacs-lisp/byte-run...done
Loading emacs-lisp/backquote...done
Loading subr...done
Loading version...done
Loading widget...done
Loading custom...done
Loading emacs-lisp/map-ynp...done
Loading international/mule...done
;; (package-initialize) ; Do NOT delete this comment
;; In emacs 25+, the `package-initialize' call is auto-added to the top of
;; init.el unless the user already has a commented or uncommented
;; `(package-initialize)' line present in their init.el.
;; I call this function in setup-packages.el and so am keeping the
;; commented out version here so that package.el does not add it again.
(advice-add 'require :before
(lambda (feature &optional filename _noerror)
(when (or (eq feature 'finder-inf)
(1 (zzz-to-char . [(20160122 440) ((emacs (24 4)) (cl-lib (0 5)) (avy (0 3 0))) "Fancy version of `zap-to-char' command" single ((:url . "https://github.com/mrkkrp/zzz-to-char") (:keywords "convenience"))]) (zygospore . [(20140703 152) nil "reversible C-x 1 (delete-other-windows)" single ((:url . "https://github.com/louiskottmann/zygospore.el"))]) (ztree . [(20160127 1542) ((cl-lib (0))) "Text mode directory tree" tar ((:url . "https://github.com/fourier/ztree") (:keywords "files" "tools"))]) (zotxt . [(20160427 1922) ((request-deferred (0 2 0))) "Tools to integrate emacs with Zotero via the zotxt plugin." tar nil]) (zotelo . [(20160118 2045) ((cl-lib (0 5))) "Manage Zotero collections from emacs" single ((:url . "https://github.com/vitoshka/zotelo") (:keywords "zotero" "emacs" "reftex" "bibtex" "mozrepl" "bibliography manager"))]) (zossima . [(20121123 1635) ((inf-ruby (2 2 3))) "Ruby from Emacs" tar ((:url . "https://github.com/technomancy/zossima") (:keywords "ruby" "convenience"))]) (zop-to-char . [(20160
;; Time-stamp: <2017-06-23 17:16:36 kmodi>
;; Anonymous function aka lambda macro
;; v1 - Original
;; https://ekaschalk.github.io/post/xi-macro/
(require 'dash)
(require 's)
(defmacro xi (&rest FORMS)
`(lambda ,(--filter (s-contains? (symbol-name it)

Understanding the overriding of ‘header-args’ in Org Babel

No property drawer

The below source block inherits the values of both :eval and :results header arguments as there is no header-args PROPERTY drawer present to override things.

Header ArgumentValueInherited From
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .ch { color: #999988; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */
/* Background */ .chroma { background-color: #ffffff }
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc; display: block; width: 100% }
/* LineNumbers */ .chroma .ln { ; margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { font-weight: bold }
/* KeywordType */ .chroma .kt { color: #445588; font-weight: bold }
/* NameAttribute */ .chroma .na { color: #008080 }
/* NameBuiltin */ .chroma .nb { color: #999999 }
/* NameClass */ .chroma .nc { color: #445588; font-weight: bold }
/* NameConstant */ .chroma .no { color: #008080 }