Compare commits

...

3 Commits

@ -10,10 +10,6 @@
;; Disable package.el in favor of straight.el
(setq package-enable-at-startup nil)
;; Disable cl-functions warnings
(setq byte-compile-warnings '(cl-functions))
(provide 'early-init)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; early-init.el ends here

@ -1,3 +1,19 @@
;;; init.el --- The Emacs init file
;;
;;; Commentary:
;; This is the main configuration file for Emacs.
;; In this file:
;; - Set the bootstratp for straight.el
;; - Load use-package
;; - Load no-littering
;; - Set user-init-directory to ~/.cache/emacs
;; - Install the latest release of org
;; - Load the file ~/.emacs.d/myconfig.org
;;
;; Disable cl-functions warnings
(setq byte-compile-warnings '(cl-functions))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; set up straight package manager
(defvar bootstrap-version)
@ -24,11 +40,11 @@
"load the elisp file only if it exists and is readable"
(if (file-readable-p f)
(load-file f)))
;; (defun load-orgfile-if-exists (f)
;; "load the elisp file only if it exists and is readable"
;; (if (file-readable-p f)
;; (org-babel-load-file (f))))
;; Helper function for loading org-mode files
(defun load-orgfile-if-exists (f)
"load the elisp file only if it exists and is readable"
(if (file-readable-p f)
(org-babel-load-file f)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Keep emacs clean!
@ -37,6 +53,9 @@
url-history-file (expand-file-name "url/history" user-emacs-directory))
;; Use no-littering to automatically set common paths to the new user-emacs-directory
(use-package no-littering)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; This is a patch for using emacs with fake home directories
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load-elisp-if-exists custom-file) ;; custom-file not loaded with fancy home variables
@ -54,3 +73,7 @@
(file-attribute-modification-time (file-attributes config-el))))
(load-file config-el)
(org-babel-load-file config-org)))
(provide 'init)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; init.el ends here

@ -566,7 +566,6 @@ Add some [[https://github.com/nex3/perspective-el][perspective]] to emacs
("b" . persp-switch-to-buffer*)))
#+end_src
* Git management
All you need for git
- [[https://github.com/magit/magit][magit]] interface to git from emacs (there are a lot of tutos)
@ -1154,6 +1153,30 @@ Have a look at [[https://github.com/jgru/consult-org-roam][the project in github
("C-c n z" . consult-org-roam-search))
#+end_src
* Cites and references
** calibredb
- [[https://github.com/chenyanming/calibredb.el][Check github]]
- Check Virtual Libraries
- Check commands binding
#+begin_src emacs-lisp
(use-package calibredb
:defer t
:config
(setq calibredb-root-dir "~/Biblioteca")
(setq calibredb-db-dir (expand-file-name "metadata.db" calibredb-root-dir))
(setq calibredb-library-alist '(("~/Biblioteca"))))
#+end_src
** Citar
- [[https://github.com/bdarcus/citar][Citar github]]
#+begin_src emacs-lisp
(use-package citar
:bind (("C-c b" . citar-insert-citation)
:map minibuffer-local-map
("M-b" . citar-insert-preset))
:custom
(citar-bibliography '("~/Dropbox/bib/references.bib")))
#+end_src
* flycheck
Syntax checking for programming languages

Loading…
Cancel
Save