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.
 

1.1 KiB

Core - Config

Package

Define core config package.

  (use-package emacs
    :after uno
    :config
    (provide 'uno-config))

Emacs Customizations and Overrides

  (use-package emacs
    :after uno-config
    :general
    (uno-leader-define
      "fe" '(:ignore t :which-key "Emacs")
      "fed" '(uno/config/edit :which-key "Edit configuration")
      "feD" '(uno/config/edit-local :which-key "Edit local configuration")
      "feR" '(uno/config/reload :which-key "Reload configuration")
      "fs" '(save-buffer :which-key "Save file")
      "fS" '(uno/file/save-all-files :which-key "Save all files"))
    :init
    (defun uno/config/edit ()
      "Open configuration file."
      (interactive)
      (projectile-find-file-in-directory user-emacs-directory))
    (defun uno/config/edit-local ()
      "Open local configuration file."
      (interactive)
      (find-file uno-local))
    (defun uno/config/reload ()
      "Reload configuration."
      (interactive)
      (load-file (uno-emacs-path "init.el"))))