about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-05-30T13·53-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-05-30T13·53-0400
commitb92bf435f26ba451d76c3176bce78d38bf7d0cf5 (patch)
treee158016344b6508b99e2640250b237277af5d99e
parent03c752e500868dd9b1b30fb2ed8a42b38ee9335f (diff)
Adds ansi-term improvements
-rw-r--r--configs/.emacs13
1 files changed, 11 insertions, 2 deletions
diff --git a/configs/.emacs b/configs/.emacs
index 46c046d0f38d..a3435b2cf9d5 100644
--- a/configs/.emacs
+++ b/configs/.emacs
@@ -208,7 +208,16 @@
   (local-set-key (kbd "C-h") 'evil-window-left)
   (local-set-key (kbd "C-l") 'evil-window-right)
   (local-set-key (kbd "C-k") 'evil-window-up)
-  (local-set-key (kbd "C-j") 'evil-window-down))
+  (local-set-key (kbd "C-j") 'evil-window-down)
+  (define-key term-raw-map (kbd "s-v") 'term-paste))
+
+(defadvice term-sentinel (around my-advice-term-sentinel (proc msg))
+  (if (memq (process-status proc) '(signal exit))
+      (let ((buffer (process-buffer proc)))
+        ad-do-it
+        (kill-buffer buffer))
+    ad-do-it))
+(ad-activate 'term-sentinel)
 
 
 ;; Ansi-Term
@@ -624,7 +633,7 @@
   (setq-default indent-tabs-mode nil)
 
   ;; Change font settings
-  (add-to-list 'default-frame-alist '(font . "Menlo-10"))
+  (add-to-list 'default-frame-alist '(font . "Menlo-12"))
 
 
   ;; Force save buffers