Skip to content

PavelNovichkov/.emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loading packages

By default, all packages are loaded with :straight and :defer keywords.

To load a library which is not a package, one has to use :straight nil statement in the use-package declaration:

(use-package library
  :straight nil)

If a package (or library) has to be loaded as soon as some feature loads with the use of :after keyword, then one has to explicitly add also :demand keyword to the use-package declaration:

(use-package package
  :demand :after feature)

Note that :demand will not force the package to be loaded at startup in this case. It will actually be deferred until feature is loaded.

Adding a hook to run in a particular mode

Use the following snippet:

(defun my/setup-<smth>-in-<some>-mode ()
  "Description."
  (add-hook '<hook-name> #'<smth> nil t))
(add-hook '<some>-mode-hook #'my/setup-<smth>-in-<some>-mode)

About

My Emacs configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published