diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -53,25 +53,6 @@ (define-key esc-map (kbd "C-r") 'vr/isearch-backward) ;; C-M-r (define-key esc-map (kbd "C-s") 'vr/isearch-forward) ;; C-M-s - - -;; C-d on an empty line in the shell terminates the process. -(defun my/comint-delchar-or-eof-or-kill-buffer (arg) - (interactive "p") - (if (null (get-buffer-process (current-buffer))) - (kill-buffer) - (comint-delchar-or-maybe-eof arg))) - -(add-hook 'shell-mode-hook - (lambda () - (define-key shell-mode-map - (kbd "C-d") 'my/comint-delchar-or-eof-or-kill-buffer))) -;; TODO: this isn't working -(add-hook 'term-mode-hook - (lambda () - (define-key term-mode-map - (kbd "C-d") 'my/comint-delchar-or-eof-or-kill-buffer))) - (add-hook 'haskell-mode-hook (lambda () (turn-on-haskell-indentation) |