summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el1
-rw-r--r--lisp/init-editing.el14
-rw-r--r--lisp/init-eshell.el16
3 files changed, 17 insertions, 14 deletions
diff --git a/init.el b/init.el
index ff68fe4..6b51c4e 100644
--- a/init.el
+++ b/init.el
@@ -29,3 +29,4 @@
(require 'init-expand-region)
(require 'init-python-mode)
(require 'init-web-mode)
+(require 'init-eshell)
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index e971999..c09c592 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -6,7 +6,6 @@
(require 'misc)
(require 'whitespace)
(require 'imenu)
-(require 'eshell)
;; disable backup files
(setq make-backup-files nil)
@@ -137,17 +136,4 @@ Including indent-buffer, which should not be called automatically on save."
(global-set-key (kbd "C-c n") 'rename-file-and-buffer)
-(defun eshell-other-window (&optional noselect)
- "Create an interactive Eshell buffer in another window."
- (interactive)
- (with-current-buffer (get-buffer-create eshell-buffer-name)
- (unless (eq major-mode 'eshell-mode)
- (eshell-mode)))
- (let ((current-window (selected-window)))
- (switch-to-buffer-other-window eshell-buffer-name)
- (when noselect
- (select-window current-window))))
-
-(global-set-key (kbd "C-c k") 'eshell-other-window)
-
(provide 'init-editing)
diff --git a/lisp/init-eshell.el b/lisp/init-eshell.el
new file mode 100644
index 0000000..e7e37e6
--- /dev/null
+++ b/lisp/init-eshell.el
@@ -0,0 +1,16 @@
+(require 'eshell)
+
+(defun eshell-other-window (&optional noselect)
+ "Create an interactive Eshell buffer in another window."
+ (interactive)
+ (with-current-buffer (get-buffer-create eshell-buffer-name)
+ (unless (eq major-mode 'eshell-mode)
+ (eshell-mode)))
+ (let ((current-window (selected-window)))
+ (switch-to-buffer-other-window eshell-buffer-name)
+ (when noselect
+ (select-window current-window))))
+
+(global-set-key (kbd "C-c k") 'eshell-other-window)
+
+(provide 'init-eshell)