diff --git a/early-init.el b/early-init.el index 5125f29..51f96a4 100644 --- a/early-init.el +++ b/early-init.el @@ -20,6 +20,18 @@ ;; (run-with-idle-timer 5 t #'garbage-collect) ;(setq garbage-collection-messages t) +;; doesn't quite work +(defun mir/dont-make-obsolete (orig &rest args) + "only run ORIG when its not linum." + ;; (message "obsoleting: %s" args) + (if (or (member 'global-linum-mode args) + (member 'linum-mode args)) + (message "linum is deprecated but i dont care") + ;; (let ((inhibit-message t)) + ;; (apply orig args)) + (apply orig args))) +(advice-add #'make-obsolete :around #'mir/dont-make-obsolete) + (defun display-startup-echo-area-message () "A re-definition of the function. Tell the Emacs startup time and number of garbage-collections