Commit e14961fc authored by Artur Malabarba's avatar Artur Malabarba

image-mode.el (image-kill-buffer): New command bound to k.

parent 57abaae5
......@@ -108,6 +108,9 @@
2015-02-04 Artur Malabarba <bruce.connor.am@gmail.com>
* image-mode.el (image-kill-buffer): New command.
(image-mode-map): Bind it to k.
* emacs-lisp/package.el (package-delete): Remove package from
`package-selected-packages' even if it can't be deleted.
(package-installed-p): Accept package-desc objects.
......
......@@ -380,6 +380,7 @@ call."
(define-key map "a-" 'image-decrease-speed)
(define-key map "a0" 'image-reset-speed)
(define-key map "ar" 'image-reverse-speed)
(define-key map "k" 'image-kill-buffer)
(define-key map [remap forward-char] 'image-forward-hscroll)
(define-key map [remap backward-char] 'image-backward-hscroll)
(define-key map [remap right-char] 'image-forward-hscroll)
......@@ -722,6 +723,11 @@ the image by calling `image-mode'."
(image-mode-as-text)
(image-mode)))
(defun image-kill-buffer ()
"Kill the current buffer."
(interactive)
(kill-buffer (current-buffer)))
(defun image-after-revert-hook ()
(when (image-get-display-property)
(image-toggle-display-text)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment