Created
September 29, 2014 14:20
-
-
Save benzap/6a149d28080e1e87b8ce to your computer and use it in GitHub Desktop.
Setup for escreen configuration,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'escreen) | |
;;Escreen setup functionality | |
(escreen-install) | |
(escreen-number-mode 1) | |
(setq escreen-prefix-char "\C-z") | |
(global-set-key escreen-prefix-char 'escreen-prefix) | |
;;Function to prompt before killing the given screen | |
(defun escreen-prompt-kill-p () | |
"Prompts the user whether they want to kill the current screen, | |
kills the screen if true" | |
(interactive) | |
(if (y-or-n-p "Kill Current Escreen?") | |
(escreen-kill-screen))) | |
;;Key Bindings for escreen navigation | |
;;function keys can be used to navigate between screens | |
(global-set-key (kbd "<f9>") 'escreen-create-screen) | |
(global-set-key (kbd "<f10>") 'escreen-goto-prev-screen) | |
(global-set-key (kbd "<f11>") 'escreen-goto-next-screen) | |
;;(global-set-key (kbd "<f12>") 'escreen-kill-screen) | |
(global-set-key (kbd "<f12>") 'escreen-prompt-kill-p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment