[Emacs] Move `require's to user-load Spacemacs function
This commit is contained in:
parent
3689587800
commit
a21fae33c8
@ -7,8 +7,10 @@
|
||||
(defvar phundrak--dotspacemacs-sl (concat phundrak--dotspacemacs-src-dir "spacemacs-layers"))
|
||||
(defvar phundrak--dotspacemacs-uc (concat phundrak--dotspacemacs-src-dir "user-config"))
|
||||
(defvar phundrak--dotspacemacs-ui (concat phundrak--dotspacemacs-src-dir "user-init"))
|
||||
(defvar phundrak--dotspacemacs-ul (concat phundrak--dotspacemacs-src-dir "user-load"))
|
||||
(defvar phundrak--dotspacemacs-files (list phundrak--dotspacemacs-si phundrak--dotspacemacs-sl
|
||||
phundrak--dotspacemacs-uc phundrak--dotspacemacs-ui))
|
||||
phundrak--dotspacemacs-uc phundrak--dotspacemacs-ui
|
||||
phundrak--dotspacemacs-ul))
|
||||
|
||||
;; turn off native comp warnings
|
||||
(setq comp-async-report-warnings-errors nil)
|
||||
@ -67,7 +69,7 @@ If you are unsure, try setting them in `dotspacemacs/user-config' first."
|
||||
This function is called only while dumping Spacemacs configuration. You can
|
||||
`require' or `load' the libraries of your choice that will be included in the
|
||||
dump."
|
||||
)
|
||||
(load phundrak--dotspacemacs-ul))
|
||||
|
||||
(defun dotspacemacs/user-config ()
|
||||
"Configuration for user code:
|
||||
|
@ -1371,9 +1371,13 @@ for lsp servers in emacs 27.
|
||||
|
||||
* User Initialization
|
||||
:PROPERTIES:
|
||||
:header-args:emacs-lisp: :mkdirp yes :tangle ~/.config/emacs/private/user-init.el :exports code :results silent :lexical t
|
||||
:CUSTOM_ID: User_Initialization-e0d21089
|
||||
:END:
|
||||
** User Init
|
||||
:PROPERTIES:
|
||||
:header-args:emacs-lisp: :mkdirp yes :tangle ~/.config/emacs/private/user-init.el :exports code :results silent :lexical t
|
||||
:CUSTOM_ID: User-Initialization-User-Init-a86829cf
|
||||
:END:
|
||||
#+BEGIN_SRC emacs-lisp :exports none
|
||||
;; -*- lexical-binding: t -*-
|
||||
#+END_SRC
|
||||
@ -1385,16 +1389,6 @@ Emacs config file:
|
||||
(load "~/.config/emacs/private/private_emacs")
|
||||
#+END_SRC
|
||||
|
||||
Then, I want a couple of requires:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(require 'org-id)
|
||||
(require 'org-protocol)
|
||||
(require 'package)
|
||||
(require 'ox-latex)
|
||||
(require 'ox-publish)
|
||||
(require 'tramp)
|
||||
#+END_SRC
|
||||
|
||||
I would also like to enable the setup of flycheck for Rust when Flycheck is
|
||||
loaded:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
@ -1412,6 +1406,21 @@ hosts if I don’t have this code snippet.
|
||||
(setq tramp-ssh-controlmaster-options
|
||||
"-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no")
|
||||
#+END_SRC
|
||||
** User Load
|
||||
:PROPERTIES:
|
||||
:header-args:emacs-lisp: :mkdirp yes :tangle ~/.config/emacs/private/user-load.el :exports code :results silent :lexical t
|
||||
:CUSTOM_ID: User-Initialization-User-Load-488cf687
|
||||
:END:
|
||||
Then, I want a couple of requires:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(require 'org-id)
|
||||
(require 'org-protocol)
|
||||
(require 'package)
|
||||
(require 'ox-latex)
|
||||
(require 'ox-publish)
|
||||
(require 'tramp)
|
||||
(require 'exwm)
|
||||
#+END_SRC
|
||||
|
||||
* User Configuration
|
||||
:PROPERTIES:
|
||||
|
Loading…
Reference in New Issue
Block a user