You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.3 KiB

Pending task

Before this file loads

The early-init.el file has been loaded.

This file inhibits package.el for loading packages

The init.el file has been loaded

This file:

  • Sets a new straight-base-dir
  • Sets all that it's needed for straight.el to work as package manager
  • Load the no-littering package (see doc) This package sets out to fix "the littering" by changing the values of path variables to put configuration files in no-littering-etc-directory (this will be ~/.cache/emacs/etc/ for this configuration) and persistent data files in no-littering-var-directory (for me: ~/.cache/emacs/var/), and by using descriptive file names and subdirectories when appropriate. This is similar to a color-theme; a "path-theme" if you will.
  • Load backup configuration by using the backup-theme-function from no-littering
  • Tries to install org-mode just to be sure the newest release is used
  • Loads the newer of this two files: myconfig.org or myconfig.el. In other words, if there are no new changes in myconfig.org it loads myconfig.el (it's faster)

use-package tips

Some notes about use-package

  • :ensure if true will install the package if not installed It won't update packages. See auto-package-update for keeping all packages up to date
  • :init keyword to execute code before a package is loaded. It accepts one or more forms, up to the next keyword
  • :config can be used to execute code after a package is loaded. In cases where loading is done lazily (see more about autoloading below), this execution is deferred until after the autoload occurs
  • :custom permite configurar variables con syntaxis simplificada
  • :bind
  • :bind-keymap
  • :commands
  • :mode and :interpreter
  • :magic
  • :hook You can define hooks
  • :if
  • :defer En general use-package intenta aplicar lazy loading, pero en algún paquete es necesario especificarlo explicitamente
  • :demand Este es el contrario del anterior, para paquetes que queremos cargar de inmediato
  • :diminish and :delight changes minormode display in status line

Personal info

;; (setq user-full-name "FirstName Surname"
;;       user-mail-address "myaddress@mymail.com")