Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Last active October 17, 2017 04:27
Show Gist options
  • Save dustinlacewell-wk/42f2506eb7044c434be78320a8132eb9 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/42f2506eb7044c434be78320a8132eb9 to your computer and use it in GitHub Desktop.
(when (site-lisp-library-loadable-p 'helm-fasd)
(load "helm-fasd"))
(defun site-lisp-library-loadable-p (name)
"Return whether or not the library `name' can be loaded from a
source file under ~/.emacs.d/site-lisp/name/"
(let ((f (locate-library (symbol-name name))))
(and f (string-prefix-p (file-name-as-directory (site-lisp-dir-for name)) f))))
Debugger entered--Lisp error: (wrong-type-argument symbolp "helm-fasd")
symbol-name("helm-fasd")
(locate-library (symbol-name name))
(let ((f (locate-library (symbol-name name)))) (and f (string-prefix-p (file-name-as-directory (site-lisp-dir-for name)) f)))
site-lisp-library-loadable-p("helm-fasd")
(if (site-lisp-library-loadable-p name) nil (byte-compile-file (download-site-lisp-module name url)))
ensure-lib-from-url("helm-fasd" "https://raw.githubusercontent.com/ajsalminen/helm-fasd/master/helm-fasd.el")
eval-buffer(#<buffer *load*> nil "/Users/dustinlacewell/.emacs.d/init.el" nil t) ; Reading at buffer position 6488
load-with-code-conversion("/Users/dustinlacewell/.emacs.d/init.el" "/Users/dustinlacewell/.emacs.d/init.el" t t)
load("/Users/dustinlacewell/.emacs.d/init" t t)
#[0 "\205\266 \306=\203\307\310Q\202? \311=\204\307\312Q\202?\313\307\314\315#\203*\316\202?\313\307\314\317#\203>\320\321\322!D\nB\323\202?\316\324\325\324\211#\210 \324=\203e\326\327\330\307\331Q!\"\325\324\211#\210 \324=\203d\210 \203\247\332 !\333\232\203\247\334 !\211\335P\336!\203\201\211\202\214\336!\203\213\202\214\314\262\203\245\337 \"\203\243\340\341 #\210\342\343!\210\266\f?\205\264\314\325\344\324\211#)\262\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" initialization format-message "`_emacs' init file is deprecated, please use `.emacs'" "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7]()
command-line()
normal-top-level()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment