From: Andreas Gerler Date: Tue, 5 Jan 2016 18:56:59 +0000 (+0100) Subject: added bba-copy-buffer-name X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=56eb5e69a888d40ec728818d06b6d8d55d942f25;p=emacsconfig.git added bba-copy-buffer-name - copy buffer file name to kill ring. --- 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]].