Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Fira code | |
;; This works when using emacs --daemon + emacsclient | |
(add-hook 'after-make-frame-functions (lambda (frame) (set-fontset-font t '(#Xe100 . #Xe16f) "Fira Code Symbol"))) | |
;; This works when using emacs without server/client | |
(set-fontset-font t '(#Xe100 . #Xe16f) "Fira Code Symbol") | |
;; I haven't found one statement that makes both of the above situations work, so I use both for now | |
(defconst fira-code-font-lock-keywords-alist | |
(mapcar (lambda (regex-char-pair) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'esxml-query) | |
(require 'org-web-tools) | |
(defun ap/amazon-book-data (url) | |
"Return plist of data for book at Amazon URL." | |
(cl-flet ((field (target-field list) | |
(cl-loop for li in list | |
for (field value) = (ignore-errors | |
(-let (((_ _ (_ _ field) value) li)) | |
(list field value))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tar and compress files using tqdm or pv for a progress bar. | |
# * Safety | |
# NOTE: These are disabled by default in this template but should be | |
# enabled when feasible. Documentation is from the Bash man page. | |
# ** errexit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Code: | |
;;;; Requirements | |
(require 'helm) | |
;;;; Commands | |
;;;###autoload | |
(defun helm-swish () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please see the script's new home: https://github.com/alphapapa/magit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# * pyt | |
# ** TODOS | |
# *** TODO Branch for downloading audio/video separately and playing with mplayer or something | |
# Both VLC and mplayer can play separate audio and video files | |
# together, but VLC doesn't have a command-line option for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun ap/python-mode-outline-hook () | |
(setq outline-level 'ap/python-outline-level) | |
(setq outline-regexp | |
(rx (or | |
;; Commented outline heading | |
(group | |
(* space) ; 0 or more spaces | |
(one-or-more (syntax comment-start)) | |
(one-or-more space) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- command-execute 207 89% | |
- call-interactively 207 89% | |
- funcall-interactively 146 63% | |
- execute-extended-command 116 50% | |
- sit-for 61 26% | |
- redisplay 49 21% | |
- redisplay_internal (C function) 4 1% | |
- funcall 4 1% | |
- #<compiled 0x26ac9b> 4 1% | |
- gui-backend-selection-exists-p 4 1% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; See https://github.com/alphapapa/unpackaged.el#filter-hydra |