aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el1
-rw-r--r--.emacs.d/lisp/et-navigation.el39
2 files changed, 0 insertions, 40 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index e51bedc..ff7e4b8 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -22,7 +22,6 @@
(require 'et-appearance)
(require 'et-vc)
(require 'et-completion)
-(require 'et-navigation)
(require 'et-format)
(require 'et-lsp)
diff --git a/.emacs.d/lisp/et-navigation.el b/.emacs.d/lisp/et-navigation.el
deleted file mode 100644
index e434ade..0000000
--- a/.emacs.d/lisp/et-navigation.el
+++ /dev/null
@@ -1,39 +0,0 @@
-;;; et-navigation.el --- Emacs navigation utiltiies -*- lexical-binding: t; -*-
-;;
-;;; Commentary:
-;;
-;; This module overrides the "scroll up page" and "scroll down page"
-;; default Emacs key mappings to only scroll up and down half a page.
-;;
-;;; Code:
-
-(global-set-key (kbd "C-v")
- 'et-scroll-down-half-page)
-
-(global-set-key (kbd "M-v")
- 'et-scroll-up-half-page)
-
-(defun et-scroll-down-half-page ()
- "Scroll down half a page while keeping the cursor centered."
- (interactive)
- (let ((ln (line-number-at-pos))
- (lmax (line-number-at-pos (point-max))))
- (cond ((= ln 1) (move-to-window-line nil))
- ((= ln lmax) (recenter (window-end)))
- (t (progn
- (move-to-window-line -1)
- (recenter))))))
-
-(defun et-scroll-up-half-page ()
- "Scroll up half a page while keeping the cursor centered."
- (interactive)
- (let ((ln (line-number-at-pos))
- (lmax (line-number-at-pos (point-max))))
- (cond ((= ln 1) nil)
- ((= ln lmax) (move-to-window-line nil))
- (t (progn
- (move-to-window-line 0)
- (recenter))))))
-
-(provide 'et-navigation)
-;;; et-navigation.el ends here