From 56eb5e69a888d40ec728818d06b6d8d55d942f25 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Tue, 5 Jan 2016 19:56:59 +0100 Subject: [PATCH] added bba-copy-buffer-name - copy buffer file name to kill ring. --- bba.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bba.org b/bba.org index df03fcbe..538876f5 100644 --- a/bba.org +++ b/bba.org @@ -1857,6 +1857,18 @@ safe files with #! in first line as user executable. #+END_SRC +* copy buffer file name to kill ring + +Sometimes you need the filename of your current buffer on the command +line or somewhere else. + +#+BEGIN_SRC emacs-lisp + (defun bba-copy-buffer-name () + (interactive) + (kill-new (buffer-file-name))) +#+END_SRC + + * ggtags Configure [[https://github.com/leoliu/ggtags][ggtags]] and [[https://github.com/syohex/emacs-helm-gtags][helm-gtags]] to use [[https://www.gnu.org/software/global/][GNU Global]]. -- 2.47.3