I am having a very weird issue with my init.el file. At startup, some of the commands in it run fine (so I know Emacs is able to pick the correct file), but others only run when I manually load the file using
M-x load-file RET ~/.emacs.d/init.el RET (so I know those commands are syntactically correct as well). Here is a working example:
(setq package-enable-at-startup nil) (setq doc-view-continuous t) (package-initialize) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (eval-when-compile (require 'use-package)) (use-package yasnippet :config (yas-reload-all) (yas-minor-mode 1) :ensure t) (use-package auto-complete :ensure t :config (auto-complete-mode 1) ) ; The following command is not run at startup. But runs when I load the file manually. (setq line-spacing 0.3) (yas-minor-mode 1) (global-display-line-numbers-mode) ;If I remove the next command, startup line numbers are no longer relative, but they are with it. (setq display-line-numbers-type 'relative)
I tried removing the top commands (all upto to line-spacing), but on removing them even the line numbers were no longer working on startup.
I am using Mac OS X Mojave.
M-x emacs-version RET gives the following:
GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02. I had installed it along with AucTex.
I am fairly new with Emacs and Lisp, so please let me know if I should provide some more information.