I'm a bit confused because the I'm trying to configure
org within spacemacs as advised in the official layer documentation for spacemacs), I should use
(with-eval-after-load 'org ( ... :
(defun dotspacemacs/user-config () "Configuration function. This function is called at the very end of Spacemacs initialization after layers configuration." ;; My keys (global-set-key [f2] 'deft) ;; My Notes (setq deft-directory "c:/Users/ZsBotykai/Dropbox/Notes/" deft-extensions '("org" "md" "txt") deft-use-filename-as-title t deft-text-mode 'org-mode) ;; ORG settings (with-eval-after-load 'org ( (setq org-agenda-files "c:/Users/USERNAME/Dropbox/Notes/")) ;; Further lines snipped...
I'm getting the following error:
(Spacemacs) Error in dotspacemacs/user-config: Invalid function: (setq org-agenda-files "c:/Users/USERNAME/Dropbox/Notes/")
I did try to use
(with-eval-after-load 'org ( (setq org-agenda-files '("c:/Users/USERNAME/Dropbox/Notes/")))
Without any success. Could you point me into the right direction?
eval-after-load) is only necessary to set up configuration that depends on the package being loaded. A
setqwith a literal value does therefore not need it (but manipulating a package's keymap does).