Skip to content

Instantly share code, notes, and snippets.


John Lunzer JohnLunzer

  • Maryland, USA
Block or report user

Report or block JohnLunzer

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
JohnLunzer / hippie.el
Created Oct 16, 2018
Hippie expansion menu using ivy (fallback to ido)
View hippie.el
;; * IDO/IVY completion menu
;; This is originally from
;; There are a few improvements:
;; - It is undo friendly with the addition of save-excursion
;; - It will use ivy for the expansion menu if ivy is available, falls back to ido
;; - Automatically expands if there is only one possible expansion
(defun my-hippie-expand-completions (&optional hippie-expand-function)
"Return list of completions generated by `hippie-expand'."
JohnLunzer / emacs-tmux-integration.el
Created Jun 28, 2016
This snippet (which should go into your emacs config file) will update your tmux window name with the title of the buffer you're currently in which is usually the filename of the file you're editing.
View emacs-tmux-integration.el
(require 'deferred)
(defun rename-tmux-window()
(deferred:process "tmux" "display-message" "-p" "'#I'")
(deferred:nextc it
(lambda (x)
(setq x (replace-regexp-in-string "\'" ""
(replace-regexp-in-string "\n\\'" "" x)))
(setq w
(replace-regexp-in-string "\*" ""
You can’t perform that action at this time.