Skip to content

Instantly share code, notes, and snippets.

View kaushalmodi's full-sized avatar

Kaushal Modi kaushalmodi

View GitHub Profile
;; Time-stamp: <2015-01-20 13:10:26 kmodi>
;; Code to demonstrate that hydra is wiping out my predefined bindings to my
;; minor mode map
;; https://github.com/abo-abo/hydra/issues/3
(require 'hydra)
(require 'bind-key)
;; http://emacs.stackexchange.com/a/7719/115
;; Matching words containing all given letters in any order
(defun my/match-word ()
"Matches words containing all chars d, l, s in any order: dollars solid
Match will fail if a word is missing any of those characters. e.g. dollar"
(interactive)
(let ((this-word (thing-at-point 'word)) ; get the word at point
(match))
(with-temp-buffer
;; Time-stamp: <2015-02-18 11:11:07 kmodi>
;; hydra issue #37
;; GNU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
;; of 2015-02-17
;; Global variables (symbols)
(setq user-home-directory (getenv "HOME"))
(setq user-emacs-directory (concat user-home-directory "/.emacs.d"))
;ELC���
;;; Compiled
;;; in Emacs version 25.0.50.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
@kaushalmodi
kaushalmodi / gist:4e50e39efa5605ad3fbb
Created November 2, 2015 17:59
ox-latex-table-error-debug.txt
Debugger entered--Lisp error: (void-function nil)
nil(((paragraph (:begin 740 :end 785 :contents-begin 740 :contents-end 785 :post-blank 0 :post-affiliated 740 :parent (footnote-definition (:label "fn:1" :begin 733 :end 785 :contents-begin 740 :contents-end 785 :post-blank 0 :post-affiliated 733 :parent (section (:begin 733 :end 785 :contents-begin 733 :contents-end 785 :post-blank 0 :post-affiliated 733 :parent (headline ... #5)) #3)) #1)) #("Simulation is quit when this macro is called\n" 0 45 (:parent #1)))))
#[257 "\303\300\"\2050 \301\301\242B\240\210\304\211;\203 \305\306#\202# \307A@\"\266\202\310=\2050 \302\311\300\"!\207" [(:export-options nil :input-buffer "ox-latex-table-export-error.org" :input-file "/home/kmodi/sandbox/org/ox-latex-table-export-error.org" :latex-class "article" :latex-class-options nil :latex-header nil :latex-header-extra nil :description nil :keywords nil :subtitle nil :latex-active-timestamp-format "\\textit{%s}" :latex-caption-above (table) :latex-classes (("arti
;; http://emacs.stackexchange.com/a/14560/115
(defvar modi/htmlize-output-directory
(let ((dir (concat temporary-file-directory
(getenv "USER") "/.htmlize/"))) ; must end with /
(make-directory dir :parents)
dir)
"Output directory for files exported by `modi/htmlize-region-to-file'.")
(defvar modi/htmlize-css-file (concat user-emacs-directory
"misc/css/leuven_theme.css")
"CSS file to be embedded in the html file created using the
Debugger entered--Lisp error: (wrong-type-argument stringp (require . finder-inf))
string-match("\\(\\`\\|/\\)clojure-mode\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'" (require . finder-inf))
load-history-filename-element("\\(\\`\\|/\\)clojure-mode\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'")
eval-after-load("clojure-mode" #[nil "\300\301!\207" [require clojure-mode-expansions] 2])
byte-code("\300\301\302\"\210\300\303\304\"\210\300\305\306\"\210\300\307\310\"\210\300\311\312\"\210\300\313\314\"\210\300\315\316\"\210\300\317\320\"\210\300\321\322\"\210\300\323\324\"\210\300\323\325\"\210\300\326\327\"\210\300\330\331\"\210\300\332\333\"\210\300\334\335\"\210\300\336\337\"\210\300\340\341\"\210\300\342\343\"\210\300\344\345\"\210\300\346\347\"\210\300\350\351\"\210\300\352\353\"\210\300\354\355\"\210\300\356\357\"\210\300\360\361\"\210\300\362\363\"\210\364\365!\207" [eval-after-load "clojure-mode" #[nil "\300\301!\207" [require clojure-mode-expansions] 2] "css-mode" #[nil "\300\301!\207" [require css-mode-expansions
Debugger entered--Lisp error: (error "Running git --no-pager difftool --exit-code --no-prompt -x diff -U0 HEAD -- init.el...FAILED (status 128)")
signal(error ("Running git --no-pager difftool --exit-code --no-prompt -x diff -U0 HEAD -- init.el...FAILED (status 128)"))
error("Running %s...FAILED (%s)" "git --no-pager difftool --exit-code --no-prompt -x diff -U0 HEAD -- init.el" "status 128")
vc-do-command(" *diff-hl* " 1 "git" ("/data/data/com.termux/files/home/.emacs.d/init.el") "--no-pager" "difftool" "--exit-code" "--no-prompt" "-x" "diff -U0" "HEAD" nil "--")
apply(vc-do-command " *diff-hl* " 1 "git" ("/data/data/com.termux/files/home/.emacs.d/init.el") ("--no-pager" "difftool" "--exit-code" "--no-prompt" "-x" "diff -U0" "HEAD" nil "--"))
vc-git-command(" *diff-hl* " 1 ("/data/data/com.termux/files/home/.emacs.d/init.el") "difftool" "--exit-code" "--no-prompt" "-x" "diff -U0" "HEAD" nil "--")
vc-git-diff(("/data/data/com.termux/files/home/.emacs.d/init.el") nil nil " *diff-hl* ")
apply(vc
;; (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.
(load (locate-user-emacs-file "my-package-setup.el") nil :nomessage)
;; Load emacs packages and activate them
;; This must come before configurations of installed packages.
;; Don't delete this line.
(package-initialize)
;; `package-initialize' call is required before any of the below
;; can happen