From 9612e429081e2f4d74ce4a4614d13930d19647f0 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 6 Nov 2013 14:48:25 -0800 Subject: [PATCH] Add message buffer name, bump emacs-testify pointer. --- init.el | 11 ++++++++++- lisp/emacs-testify | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 7a194e88..cec3f1d4 100644 --- a/init.el +++ b/init.el @@ -21,7 +21,7 @@ (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/zenburn") (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/solarized") (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") -(load-theme 'solarized-dark t) +(load-theme 'zenburn t) ;; ============================================================================= ;; General Emacs Options @@ -85,6 +85,10 @@ (interactive) (path-relative-to-base-path (buffer-file-name) (expand-file-name (ffip-project-root)))) +(defun message-buffer-name() + (interactive) + (message (ffip-get-buffer-name))) + (defun path-relative-to-base-path(file-path base-path) (mapconcat 'identity (list-diff (path-to-list base-path) (path-to-list file-path)) "/")) @@ -105,6 +109,10 @@ (interactive "r") (shell-command-on-region b e "cat | tmux loadb -")) +(defun tmux-copy-buffer-name (&optional b e) + (interactive "r") + (shell-command (concat "echo " (shell-quote-argument (ffip-get-buffer-name)) " | tmux loadb -"))) + ;; ============================================================================= ;; Flymake ;; ============================================================================= @@ -171,6 +179,7 @@ (global-set-key (kbd "C-x O") (lambda () (interactive) (other-window -1))) (global-set-key "\C-ct" 'testify-run-test) (global-set-key "\C-c\C-t" 'testify-run-case) +(global-set-key (kbd "C-c +") (lambda () (interactive) (message (ffip-get-buffer-name)))) ;; Something will occasionally override this binding. diff --git a/lisp/emacs-testify b/lisp/emacs-testify index e66ba0cd..566f0a8a 160000 --- a/lisp/emacs-testify +++ b/lisp/emacs-testify @@ -1 +1 @@ -Subproject commit e66ba0cd9dba146d7c71052da41dded5a6284a45 +Subproject commit 566f0a8aba31f74128bc768c62d020f2b128cdde