(add-to-list 'package-archives
'("elpa-devel" . "https://elpa.gnu.org/devel/"))
+ (setq package-archive-column-width 12
+ package-version-column-width 28)
+#+end_src
+
+* Selected packages
+:PROPERTIES:
+:CUSTOM_ID: selected-packages
+:END:
+#+begin_src emacs-lisp
(setq package-selected-packages
'(
alert
all-the-icons-completion
all-the-icons-dired
all-the-icons-gnus
+ auctex
auctex-latexmk
avy
bbdb
vundo
whitespace-cleanup-mode
with-editor
- )
- package-archive-column-width 12
- package-version-column-width 28)
+ ))
(package-install-selected-packages)
#+end_src
-
* Add local Elisp directory to load-path
:PROPERTIES:
:CUSTOM_ID: add-to-load-path
:END:
#+begin_src emacs-lisp
- (with-eval-after-load 'sweeprolog
- (keymap-global-set "C-c p" sweeprolog-prefix-map))
(keymap-global-set "C-c w" #'esy/eww)
(keymap-global-set "C-c c" #'org-capture)
(keymap-global-set "C-c l" #'org-store-link)
(keymap-global-unset "s-g")
(keymap-global-unset "s-h")
(keymap-global-unset "s-j")
+ (keymap-global-unset "s-k")
+ (keymap-global-unset "s-l")
(keymap-global-unset "s-m")
(keymap-global-unset "s-o")
(keymap-global-unset "s-q")
(keymap-global-unset "s-s")
+ (keymap-global-unset "s-t")
(keymap-global-unset "s-u")
(keymap-global-unset "s-w")
+ (keymap-global-unset "s-x")
+ (keymap-global-unset "s-y")
+ (keymap-global-unset "s-z")
(global-set-key [remap kill-region] #'esy/kill-dwim)
(global-set-key [remap goto-line] #'consult-goto-line)
(global-set-key [remap suspend-frame] #'zap-up-to-char)
(all-the-icons-dired-mode)))
(with-eval-after-load 'dired
+ (put 'dired-find-alternate-file 'disabled nil)
(setq dired-dwim-target t)
(add-hook 'dired-mode-hook #'esy/local-all-the-icons-dired-mode))
#+end_src
"https://writer13.neocities.org/rss.xml"
"https://njoseph.me/shaarli/feed/atom?"
"https://stephanango.com/feed.xml"
- "https://hnrss.org/newest?points=50"
"https://nullprogram.com/feed/"
"https://planet.emacslife.com/atom.xml")))
#+end_src
(setq use-package-verbose t)
(use-package sweeprolog
- :mode ("\\.pl\\'" . sweeprolog-mode)
- :mode ("\\.plt\\'" . sweeprolog-mode)
+ :mode ("\\.plt?\\'" . sweeprolog-mode)
:bind-keymap ("C-c p" . sweeprolog-prefix-map)
:config
(add-hook 'sweeprolog-mode-hook #'sweeprolog-electric-layout-mode))
"Path of the projects directory.")
(add-hook 'kill-emacs-hook
- (lambda () (project-remember-projects-under
- (expand-file-name esy/projects-directory))))
+ (lambda ()
+ (require 'project)
+ (mapcar #'project-remember-projects-under
+ (directory-files
+ esy/projects-directory))))
#+end_src
** Project switch commands
#+begin_src emacs-lisp
(with-eval-after-load 'project
(add-to-list 'project-switch-commands '(project-compile "Compile"))
+ (add-to-list 'project-switch-commands '(rg-project "rg"))
+ (add-to-list 'project-switch-commands '(magit-project-status "Magit"))
+ (add-to-list 'project-switch-commands '(project-shell "Shell"))
(when (boundp 'project-prefix-map)
(define-key project-prefix-map "R" #'rg-project)
- (define-key project-prefix-map "m" #'magit-project-status)
- (add-to-list 'project-switch-commands '(rg-project "rg") t)
- (add-to-list 'project-switch-commands '(magit-project-status "Magit") t)))
+ (define-key project-prefix-map "m" #'magit-project-status)))
#+end_src
* Presentation mode