Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
(require 'perl-completion)
;; M-x perl-rename-buffer
(defun perl-rename-buffer ()
(interactive)
(let ((package-name (plcmp-get-current-package-name)))
(when package-name
(rename-buffer package-name t))))
;; (add-hook 'cperl-mode-hook
;; (lambda ()
;; (ignore-errors
;; (require 'perl-completion)
;; (perl-rename-buffer))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment