I'm new to Emacs so I ended up following along with a tutorial by System Crafters. In the video he notes that he is not loading his primary configuration for the tutorial, so he loads an Emacs template with this command
emacs -q -l init.el straight from the folder he created.
I setup all my settings in the
init.el file, but now, they only load if I open Emacs while in the
~/.config/emacs directory (I am using Kubuntu Linux). The
init.el file also only loads if I run Emacs the same way as in the template:
emacs -q -l init.el. This is really annoying if I want to open Emacs from any directory. It works, but it's a workaround that I'd like to avoid if possible.
This is what's in my
;; Emacs Configurations (setq inhibit-startup-message t) ; don't show splash screen at startup (add-to-list 'default-frame-alist '(fullscreen, .fullboth)) ; full screen at startup (scroll-bar-mode -1) ; disable scrollbar (add-to-list 'custom-theme-load-path "~/.config/emacs/themes") ; add theme path (load-theme 'dracula t) ; load dracula theme ;; Org-Mode Configurations (add-to-list 'load-path "~/src/org-mode/lisp") ; load org-mode (global-set-key (kbd "C-c l") #'org-store-link) ; org store key bind (global-set-key (kbd "C-c a") #'org-agenda) ; org agenda key bind (global-set-key (kbd "C-c c") #'org-capture) ; org capture key bind (setq org-adapt-indentation t org-hide-leading-stars t org-odd-levels-only t) ; set adapt indentation w/ clean stars (setq org-agenda-files '("~/Org/test.org")) ; add test.org to agenda view
I tried going to my
~/Org directory and run Emacs using
emacs -q -l init.el and both gave the same error stating the No such file or directory 'init.el'.