Skip to content

Instantly share code, notes, and snippets.

Kaushal Modi kaushalmodi

Block or report user

Report or block kaushalmodi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View my-package-setup.el
(package-initialize) ; Do not delete this line
(provide 'my-package-setup)
View installed-packaged.txt
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
View debug-finder-inf.txt
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
View messages.txt
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
View init-package-initialize-outside.el
;; (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)
View archive-contents
(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
View parse_args_getopt.sh
#!/usr/bin/env bash
# Time-stamp: <2017-04-27 09:57:21 kmodi>
#
# Example of using getopt to parse command line options
# http://stackoverflow.com/a/29754866/1219634 Limitation: All the options
# starting with - have to be listed in --options/--longoptions, else getopt will
# error out. So this cannot be used in wrapper scripts for other applications
# where you plan to pass on the non-wrapper-script options to that wrapped
# application.
View nim_mybuild.sh
#!/usr/bin/env bash
# Time-stamp: <2017-05-18 08:18:01 kmodi>
# Usage: ./mybuild.sh # Installs using origin/devel
# ./mybuild.sh --rev v0.17.0
# ./mybuild.sh --rev origin/master
set -euo pipefail # http://redsymbol.net/articles/unofficial-bash-strict-mode
IFS=$'\n\t'
View xi.el
;; 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)
View header-arg-prop-inheritance.org

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
You can’t perform that action at this time.