33 ms·
These are pretty minor, but I use them constantly, and they're pretty self-contained. (global-set-key (kbd "C-=") 'switch-to-previous-buffer) (defun sw
by silentbicycle 16y ago
These are pretty minor, but I use them constantly, and they're pretty self-contained.
(global-set-key (kbd "C-=") 'switch-to-previous-buffer)
(defun switch-to-previous-buffer ()
(interactive)
(switch-to-buffer (other-buffer)))
(global-set-key (kbd "C-z") 'shell)
(defun my-shell-mode-hook ()
(local-set-key (kbd "C-z") 'bury-buffer))
(add-hook 'shell-mode-hook 'my-shell-mode-hook)