aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-14 16:43:54 -0500
committerJesús <heckyel@hyperbola.info>2019-05-14 16:43:54 -0500
commit678187cf7edfe90e16ec3274abe3ebe0067d934b (patch)
treeefd6ae75702777121bdd14da0d93eafc4a8d4e6a
parente60a671ef6babdde580cec41dab6263efedb5764 (diff)
downloademacs-personal-678187cf7edfe90e16ec3274abe3ebe0067d934b.tar.lz
emacs-personal-678187cf7edfe90e16ec3274abe3ebe0067d934b.tar.xz
emacs-personal-678187cf7edfe90e16ec3274abe3ebe0067d934b.zip
code-cleanup: remove unimportant code, this already exists with use-package: :after
-rw-r--r--modules/init-utils.el13
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/init-utils.el b/modules/init-utils.el
index 45f582f..dd1953b 100644
--- a/modules/init-utils.el
+++ b/modules/init-utils.el
@@ -31,7 +31,8 @@ read the .el files"
(floor (* 0.9
(face-attribute 'default :height)))))
-;; Not original from Sacha. Taken from: http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/
+;; Not original from Sacha.
+;; Taken from: http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/
(defun sacha/smarter-move-beginning-of-line (arg)
"Move point back to indentation of beginning of line.
@@ -55,15 +56,5 @@ point reaches the beginning or end of the buffer, stop there."
(when (= orig-point (point))
(move-beginning-of-line 1))))
;;------------------------------------------------------------------------------
-
-;; This is borrowed from https://github.com/purcell/emacs.d/blob/master/lisp/init-utils.el by Steve Purcell but I have added some stuff.
-(if (fboundp 'with-eval-after-load)
- (defalias 'after-load 'with-eval-after-load)
- (defmacro after-load (feature &rest body)
- "After FEATURE is loaded, evaluate BODY."
- (declare (indent defun))
- `(eval-after-load, feature
- '(progn ,@body))))
-
(provide 'init-utils)
;;; init-utils.el ends here