summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 0 insertions, 19 deletions
diff --git a/init.el b/init.el
index 633a148..4960182 100644
--- a/init.el
+++ b/init.el
@@ -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)