aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-02-26 01:45:01 -0800
committerGravatar Tom Willemse2019-02-26 01:45:01 -0800
commit40913d728310e9380bf49e98d68207c5b8be6dfd (patch)
treef062e39c8bc047587928baf88d8cc66ca116b1d7
parentc9e395d30140b59100babb5ccb1b3f835f6862ac (diff)
downloadnew-dotfiles-40913d728310e9380bf49e98d68207c5b8be6dfd.tar.gz
new-dotfiles-40913d728310e9380bf49e98d68207c5b8be6dfd.zip
Move Eshell configuration to emacs-config
-rw-r--r--emacs/.emacs.d/init.el1
-rw-r--r--emacs/.emacs.d/init/oni-eshell-init.el55
2 files changed, 0 insertions, 56 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 9136e58..f56a1b8 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -163,7 +163,6 @@
;; 'face '(:family "Font Awesome" :height 0.75))))
(with-eval-after-load 'elec-pair (load "oni-elec-pair-init"))
-(with-eval-after-load 'eshell (load "oni-eshell-init"))
(with-eval-after-load 'gnus (load "oni-gnus-init"))
(with-eval-after-load 'ruby-mode (load "oni-ruby-init"))
(with-eval-after-load 'scheme (load "oni-scheme-init"))
diff --git a/emacs/.emacs.d/init/oni-eshell-init.el b/emacs/.emacs.d/init/oni-eshell-init.el
deleted file mode 100644
index 6dab317..0000000
--- a/emacs/.emacs.d/init/oni-eshell-init.el
+++ /dev/null
@@ -1,55 +0,0 @@
-;;; oni-eshell-init.el --- Eshell config -*- lexical-binding: t; -*-
-
-;; Copyright (C) 2018 Tom Willemse
-
-;; Author: Tom Willemse <tom@ryuslash.org>
-;; Keywords: local
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program. If not, see <https://www.gnu.org/licenses/>.
-
-;;; Commentary:
-
-;; My Eshell configuration.
-
-;;; Code:
-
-(require 'eshell)
-(require 'em-prompt)
-
-(defun oni-eshell-init-C-d ()
- "Call `delete-char' or close the buffer if it fails."
- (interactive)
- (condition-case err
- (call-interactively #'delete-char)
- (error (if (and (eq (car err) 'end-of-buffer)
- (looking-back eshell-prompt-regexp nil))
- (kill-buffer)
- (signal (car err) (cdr err))))))
-
-(defun oni-eshell-init-enable-truncating-buffers ()
- "Add `eshell-truncate-buffer' to `eshell-output-filter-functions'."
- (add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer))
-
-(add-hook 'eshell-load-hook #'oni-eshell-init-enable-truncating-buffers)
-(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode)
-(add-hook 'eshell-mode-hook 'goto-address-mode)
-
-(defun oni:set-eshell-C-d ()
- "Set `C-d' to quit eshell if used at end of prompt."
- (define-key eshell-mode-map (kbd "C-d") #'oni-eshell-init-C-d))
-
-(add-hook 'eshell-first-time-mode-hook #'oni:set-eshell-C-d)
-
-(provide 'oni-eshell-init)
-;;; oni-eshell-init.el ends here