Compare commits
8 Commits
master
...
827e1a879a
| Author | SHA1 | Date | |
|---|---|---|---|
|
827e1a879a
|
|||
|
258ffa1486
|
|||
|
826b27a621
|
|||
|
84d941ed62
|
|||
|
f42e7c2192
|
|||
|
fa19e34239
|
|||
|
51d2463a8d
|
|||
|
5e0f9a61be
|
@@ -28,11 +28,13 @@
|
|||||||
;; Keybindings for next/previous buffer
|
;; Keybindings for next/previous buffer
|
||||||
(map! :n "C-c j" #'previous-buffer)
|
(map! :n "C-c j" #'previous-buffer)
|
||||||
(map! :n "C-c k" #'next-buffer)
|
(map! :n "C-c k" #'next-buffer)
|
||||||
|
;; Keybindings for citar
|
||||||
|
(map! :leader :n "n B" #'citar-open-files
|
||||||
|
:desc "Open associated PDF with bibliography entry")
|
||||||
;; Keybindings for PlatformIO
|
;; Keybindings for PlatformIO
|
||||||
(map! :after platformio-mode
|
(map! :after platformio-mode
|
||||||
:map platformio-mode-map
|
:map platformio-mode-map
|
||||||
(:localleader
|
(:localleader
|
||||||
:desc "Compile the project" "c c" #'platformio-build
|
:desc "Compile the project" "c c" #'platformio-build
|
||||||
:desc "Upload the project" "c u" #'platformio-upload
|
:desc "Upload the project" "c u" #'platformio-upload
|
||||||
:desc "Monitor the serial console" "c m" #'platformio-device-monitor
|
:desc "Monitor the serial console" "c m" #'platformio-device-monitor))
|
||||||
:desc "Upload data files" "c d" #'platformio-spiffs-upload))
|
|
||||||
|
|||||||
19
+org.el
19
+org.el
@@ -95,6 +95,10 @@
|
|||||||
(use-package! engrave-faces-latex
|
(use-package! engrave-faces-latex
|
||||||
:after ox-latex)
|
:after ox-latex)
|
||||||
(setq org-latex-src-block-backend 'engraved)
|
(setq org-latex-src-block-backend 'engraved)
|
||||||
|
;; Set up bibliography management
|
||||||
|
(setq org-cite-global-bibliography '("~/Documents/Uni/Thesis/docs/bibliography.bib")
|
||||||
|
citar-bibliography org-cite-global-bibliography
|
||||||
|
citar-library-paths '("~/Documents/Uni/Thesis/bibliography"))
|
||||||
;; Add citeproc and metadata-file options to ox-pandoc
|
;; Add citeproc and metadata-file options to ox-pandoc
|
||||||
(after! ox-pandoc
|
(after! ox-pandoc
|
||||||
(add-to-list 'org-pandoc-valid-options 'citeproc)
|
(add-to-list 'org-pandoc-valid-options 'citeproc)
|
||||||
@@ -116,6 +120,17 @@
|
|||||||
:file "~/Notes/Recipes.org"
|
:file "~/Notes/Recipes.org"
|
||||||
:type entry
|
:type entry
|
||||||
:template ("%(org-chef-get-recipe-from-url)"))
|
:template ("%(org-chef-get-recipe-from-url)"))
|
||||||
|
("Reference" :keys "r"
|
||||||
|
:type entry
|
||||||
|
:file "~/Documents/Uni/Thesis/docs/Bibliography.org"
|
||||||
|
:function org-goto
|
||||||
|
:fetch-bibtex (lambda () (org-capture-ref-process-capture))
|
||||||
|
:org-entry (lambda () (org-capture-ref-get-org-entry))
|
||||||
|
:template
|
||||||
|
("%{fetch-bibtex}* %?%{space}%(org-capture-ref-get-bibtex-field :title)"
|
||||||
|
"#+begin_src bibtex"
|
||||||
|
"%(org-capture-ref-get-bibtex-field :bibtex-string)"
|
||||||
|
"#+end_src")))))
|
||||||
;; Fix org-chef scraping
|
;; Fix org-chef scraping
|
||||||
(setq org-chef-prefer-json-ld t)
|
(setq org-chef-prefer-json-ld t)
|
||||||
;; Get the current state of org-pomodoro
|
;; Get the current state of org-pomodoro
|
||||||
@@ -170,6 +185,10 @@
|
|||||||
(add-hook! 'org-mode-hook 'org-fragtog-mode)
|
(add-hook! 'org-mode-hook 'org-fragtog-mode)
|
||||||
;; Auto tangle on save
|
;; Auto tangle on save
|
||||||
(add-hook! 'org-mode-hook 'org-auto-tangle-mode)
|
(add-hook! 'org-mode-hook 'org-auto-tangle-mode)
|
||||||
|
;; Save bibtex to annotated bibliography with category selection
|
||||||
|
(setq org-goto-interface 'outline-path-completion
|
||||||
|
org-goto-max-level 1)
|
||||||
|
(use-package! org-capture-ref)
|
||||||
;; HACK Fix search folded sections
|
;; HACK Fix search folded sections
|
||||||
(setq org-fold-core-style 'overlays)
|
(setq org-fold-core-style 'overlays)
|
||||||
(evil-select-search-module 'evil-search-module 'evil-search)
|
(evil-select-search-module 'evil-search-module 'evil-search)
|
||||||
|
|||||||
21
+rss.el
21
+rss.el
@@ -1,21 +1,16 @@
|
|||||||
;;; +rss.el -*- lexical-binding: t; -*-
|
;;; +rss.el -*- lexical-binding: t; -*-
|
||||||
;; Elfeed configuration
|
;; Elfeed configuration
|
||||||
;;
|
;;
|
||||||
;; Tweak appeareance of the main page
|
;; Synchronize elfeed with Miniflux
|
||||||
(setq elfeed-sort-order 'ascending
|
(setq elfeed-use-curl t
|
||||||
|
elfeed-protocol-feeds (list
|
||||||
|
(list "fever+https://coolneng@rss.coolneng.duckdns.org"
|
||||||
|
:api-url "https://rss.coolneng.duckdns.org/fever/"
|
||||||
|
:password (auth-source-pass-get 'secret "api/miniflux")))
|
||||||
|
elfeed-sort-order 'ascending
|
||||||
elfeed-search-filter "@all +unread"
|
elfeed-search-filter "@all +unread"
|
||||||
elfeed-goodies/tag-column-width 0)
|
elfeed-goodies/tag-column-width 0)
|
||||||
;; Synchronize elfeed with Miniflux
|
(elfeed-protocol-enable)
|
||||||
(use-package! elfeed-protocol
|
|
||||||
:after elfeed
|
|
||||||
:config
|
|
||||||
(setq elfeed-use-curl t
|
|
||||||
elfeed-protocol-enabled-protocols '(fever)
|
|
||||||
elfeed-protocol-feeds (list
|
|
||||||
(list "fever+https://coolneng@rss.psydnd.org"
|
|
||||||
:api-url "https://rss.psydnd.org/fever/"
|
|
||||||
:password (auth-source-pass-get 'secret "api/miniflux"))))
|
|
||||||
(elfeed-protocol-enable))
|
|
||||||
;; Update RSS feeds on startup
|
;; Update RSS feeds on startup
|
||||||
(add-hook! 'elfeed-search-mode-hook 'elfeed-update)
|
(add-hook! 'elfeed-search-mode-hook 'elfeed-update)
|
||||||
;; Use different font and show article in fullscreen
|
;; Use different font and show article in fullscreen
|
||||||
|
|||||||
14
+ui.el
14
+ui.el
@@ -6,15 +6,13 @@
|
|||||||
;; Display Magit status in fullscreen
|
;; Display Magit status in fullscreen
|
||||||
(after! magit
|
(after! magit
|
||||||
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
|
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
|
||||||
;; Match pdf-tools colors to the theme, fit to page by default and enable smooth scrolling
|
;; Match pdf-tools colors to the theme and fit to page by default
|
||||||
(after! pdf-tools
|
(after! pdf-tools
|
||||||
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))
|
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))
|
||||||
(setq-default pdf-view-display-size 'fit-width)
|
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
||||||
(add-hook 'pdf-tools-enabled-hook 'pdf-view-roll-minor-mode))
|
|
||||||
;; Customize modeline
|
;; Customize modeline
|
||||||
(setq doom-modeline-major-mode-icon t
|
(setq doom-modeline-major-mode-icon t
|
||||||
doom-modeline-buffer-encoding nil
|
doom-modeline-buffer-encoding nil)
|
||||||
doom-modeline-check-simple-format t)
|
|
||||||
;; Hide direnv environment variables popup
|
;; Hide direnv environment variables popup
|
||||||
(setq direnv-always-show-summary nil)
|
(setq direnv-always-show-summary nil)
|
||||||
;; Change splash-screen banner
|
;; Change splash-screen banner
|
||||||
@@ -64,7 +62,11 @@
|
|||||||
:icon (nerd-icons-octicon "nf-oct-rss" :face 'doom-dashboard-menu-title)
|
:icon (nerd-icons-octicon "nf-oct-rss" :face 'doom-dashboard-menu-title)
|
||||||
:when (featurep! :app rss)
|
:when (featurep! :app rss)
|
||||||
:face (:inherit (doom-dashboard-menu-title bold))
|
:face (:inherit (doom-dashboard-menu-title bold))
|
||||||
:action =rss)))
|
:action =rss)
|
||||||
|
("Read saved articles"
|
||||||
|
:icon (nerd-icons-octicon "nf-oct-book" :face 'doom-dashboard-menu-title)
|
||||||
|
:face (:inherit (doom-dashboard-menu-title bold))
|
||||||
|
:action =wallabag)))
|
||||||
;; Restore previous session without confirmation
|
;; Restore previous session without confirmation
|
||||||
(defadvice! restore-no-confirm-session-quickload-a ()
|
(defadvice! restore-no-confirm-session-quickload-a ()
|
||||||
:override #'doom/quickload-session
|
:override #'doom/quickload-session
|
||||||
|
|||||||
21
config.el
21
config.el
@@ -8,13 +8,18 @@
|
|||||||
(load! "+keybindings")
|
(load! "+keybindings")
|
||||||
;; Set projects directories
|
;; Set projects directories
|
||||||
(setq projectile-project-search-path '(("~/Projects" . 2)
|
(setq projectile-project-search-path '(("~/Projects" . 2)
|
||||||
("~/Documents" . 5)
|
("~/Documents/Work" . 1)
|
||||||
("~/Repos")
|
("~/Documents/Papers" . 0)
|
||||||
|
("~/Documents/Typesetting" . 1)
|
||||||
|
("~/Documents/Paperwork" . 1)
|
||||||
|
("~/Documents/Typesetting" . 1)
|
||||||
|
("~/Documents/Uni" . 3)
|
||||||
|
("~/Repos" . 1)
|
||||||
"~/.dotfiles"
|
"~/.dotfiles"
|
||||||
"~/Notes"))
|
"~/Notes"))
|
||||||
;; Auto cleanup recentf
|
; Auto cleanup recentf
|
||||||
(setq recentf-auto-cleanup 300)
|
(setq recentf-auto-cleanup 300)
|
||||||
;; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
|
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
|
||||||
(setq backup-directory-alist `(("." . "~/.cache"))
|
(setq backup-directory-alist `(("." . "~/.cache"))
|
||||||
auto-save-list-file-prefix (concat "~/.cache"))
|
auto-save-list-file-prefix (concat "~/.cache"))
|
||||||
;; Load org configuration
|
;; Load org configuration
|
||||||
@@ -94,6 +99,9 @@
|
|||||||
:after cc-mode
|
:after cc-mode
|
||||||
:config
|
:config
|
||||||
(add-hook! 'c++-mode-hook (platformio-conditionally-enable)))
|
(add-hook! 'c++-mode-hook (platformio-conditionally-enable)))
|
||||||
|
;; Disable Pyright's type checking
|
||||||
|
(after! lsp-pyright
|
||||||
|
(setq lsp-pyright-use-library-code-for-types nil))
|
||||||
;; Set indentation level to 2
|
;; Set indentation level to 2
|
||||||
(setq tab-width 2)
|
(setq tab-width 2)
|
||||||
;; Move buffer while maintaining cursor centered
|
;; Move buffer while maintaining cursor centered
|
||||||
@@ -104,6 +112,5 @@
|
|||||||
(pixel-scroll-precision-mode)
|
(pixel-scroll-precision-mode)
|
||||||
;; Restore previous session on startup
|
;; Restore previous session on startup
|
||||||
(add-hook 'window-setup-hook #'doom/quickload-session)
|
(add-hook 'window-setup-hook #'doom/quickload-session)
|
||||||
;; Set ruff as the default python formatter
|
;; Enable PDF smooth scrolling
|
||||||
(after! python
|
(add-hook 'pdf-tools-enabled-hook 'pdf-view-roll-minor-mode)
|
||||||
(set-formatter! 'ruff :modes '(python-mode python-ts-mode)))
|
|
||||||
|
|||||||
7
init.el
7
init.el
@@ -11,7 +11,7 @@
|
|||||||
(doom! :input
|
(doom! :input
|
||||||
;;chinese
|
;;chinese
|
||||||
;;japanese
|
;;japanese
|
||||||
;;layout ; auie,ctsrnm is the superior home row
|
;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
:completion
|
:completion
|
||||||
;;(company +tng) ; the ultimate code completion backend
|
;;(company +tng) ; the ultimate code completion backend
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
;;biblio ; Writes a PhD for you (citation needed)
|
biblio ; Writes a PhD for you (citation needed)
|
||||||
debugger ; FIXME stepping through code, to help you add bugs
|
debugger ; FIXME stepping through code, to help you add bugs
|
||||||
direnv
|
direnv
|
||||||
;;docker
|
;;docker
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
;;+docsets) ; ...or in Dash docsets locally
|
;;+docsets) ; ...or in Dash docsets locally
|
||||||
(lsp +booster) ; M-x vscode
|
lsp ; M-x vscode
|
||||||
;;macos ; MacOS-specific commands
|
;;macos ; MacOS-specific commands
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
@@ -164,6 +164,7 @@
|
|||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
(python +lsp ; beautiful is better than ugly
|
(python +lsp ; beautiful is better than ugly
|
||||||
|
+pyright
|
||||||
+poetry
|
+poetry
|
||||||
+tree-sitter)
|
+tree-sitter)
|
||||||
;;qt ; the 'cutest' gui framework ever
|
;;qt ; the 'cutest' gui framework ever
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
(package! org-auto-tangle)
|
(package! org-auto-tangle)
|
||||||
;; Enable LaTeX previews automatically
|
;; Enable LaTeX previews automatically
|
||||||
(package! org-fragtog)
|
(package! org-fragtog)
|
||||||
|
;; Fetch and save bibtex from Firefox
|
||||||
|
(package! asoc :recipe (:host github :repo "troyp/asoc.el"))
|
||||||
|
(package! doct :recipe (:host github :repo "progfolio/doct"))
|
||||||
|
(package! persid :recipe (:host github :repo "rougier/persid"))
|
||||||
|
(package! org-capture-ref :recipe (:host github :repo "yantar92/org-capture-ref"))
|
||||||
;; Arduino development
|
;; Arduino development
|
||||||
(package! platformio-mode)
|
(package! platformio-mode)
|
||||||
;; Light theme
|
;; Light theme
|
||||||
@@ -29,5 +34,3 @@
|
|||||||
(unpin! pdf-tools)
|
(unpin! pdf-tools)
|
||||||
(package! pdf-tools :recipe (:host github :repo "aikrahguzar/pdf-tools" :branch "child-frame-preview"))
|
(package! pdf-tools :recipe (:host github :repo "aikrahguzar/pdf-tools" :branch "child-frame-preview"))
|
||||||
(package! image-roll :recipe (:host github :repo "dalanicolai/image-roll.el"))
|
(package! image-roll :recipe (:host github :repo "dalanicolai/image-roll.el"))
|
||||||
;; Declarative org capture templates
|
|
||||||
(package! doct :recipe (:host github :repo "progfolio/doct"))
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
# -*- mode: snippet -*-
|
|
||||||
# name: work administration template
|
|
||||||
# key: work
|
|
||||||
# condition: t
|
|
||||||
# --
|
|
||||||
Dear colleague,
|
|
||||||
|
|
||||||
You will find attached to this mail my $1 for the month of `(format-time-string "%B %Y")`.
|
|
||||||
|
|
||||||
Kind regards,
|
|
||||||
|
|
||||||
Amin Kasrou Aouam
|
|
||||||
Reference in New Issue
Block a user