code-cleanup: remove unimportant code, this already exists with use-package: :after

This commit is contained in:
Jesús 2019-05-14 16:43:54 -05:00
parent e60a671ef6
commit 678187cf7e
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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