(lambda () (setq gc-cons-threshold normal-gc-cons-threshold))))
#+end_src
-* Loading the =modus-vivendi= theme
+* Suppressing compilation warnings
+:PROPERTIES:
+:CUSTOM_ID: compilation-warning
+:END:
+
+#+begin_src emacs-lisp
+ (setq native-comp-async-report-warnings-errors 'silent)
+ (setq warning-minimum-level :error)
+#+end_src
+
+* Loading a theme
:PROPERTIES:
:CUSTOM_ID: themes
:END:
#+begin_src emacs-lisp
- (setq modus-themes-mode-line '(borderless accented)
- modus-themes-region '(bg-only)
- modus-themes-italic-constructs t
- modus-themes-prompts '(bold)
- modus-themes-hl-line '(accented)
- modus-themes-subtle-line-numbers t
- modus-themes-paren-match '(intense)
- modus-themes-org-blocks '(tinted-background))
- (load-theme 'modus-vivendi)
+ ;; (setq modus-themes-mode-line '(borderless accented)
+ ;; modus-themes-region '(bg-only)
+ ;; modus-themes-italic-constructs t
+ ;; modus-themes-bold-constructs t
+ ;; modus-themes-prompts '(bold)
+ ;; modus-themes-hl-line '(accented)
+ ;; modus-themes-subtle-line-numbers t
+ ;; modus-themes-paren-match '(intense)
+ ;; modus-themes-org-blocks '(tinted-background))
+ ;; (load-theme 'modus-vivendi)
+
+ (setq ef-themes-mixed-fonts t
+ ef-themes-variable-pitch-ui t)
+ (mapc #'disable-theme custom-enabled-themes)
+ (load-theme 'ef-bio :no-confirm)
#+end_src
* Package archives
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
#+end_src
-* Suppressing native compilation warnings
-:PROPERTIES:
-:CUSTOM_ID: native-compilation
-:END:
-
-#+begin_src emacs-lisp
- (setq native-comp-async-report-warnings-errors 'silent)
-#+end_src
-
* No littering!
:PROPERTIES:
:CUSTOM_ID: no-littering
#+begin_src emacs-lisp
(setq user-full-name "Eshel Yaron")
+ (setq user-mail-address "me@eshelyaron.com")
(defconst esy/user-mail-address-gmail "eshelshay.yaron@gmail.com"
"My personal Gmail address.")
:END:
#+begin_src emacs-lisp
- (keymap-global-set "C-c p" sweep-prefix-map)
+ (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)
(global-set-key (kbd "C-;") #'avy-goto-char-timer)
(global-set-key (kbd "C-s-p") #'esy/present-buffer)
(global-set-key (kbd "C-s-f") #'toggle-frame-fullscreen)
- (global-set-key (kbd "s-j") sweep-prefix-map)
(global-set-key (kbd "C-s-l") #'esy/pulse-line))
(add-hook 'after-init-hook #'esy/customize-global-keymap)
(keymap-unset flyspell-mode-map "C-;" t))
#+end_src
+* LaTeX and PDF settings
+:PROPERTIES:
+:CUSTOM_ID: latex-and-pdf
+:END:
+
+#+begin_src emacs-lisp
+ (defun esy/pdf-tools-install ()
+ "Install PDF-Tools on demand."
+ (interactive)
+ (require 'tex)
+ (require 'pdf-tools)
+ (require 'pdf-view)
+ (pdf-tools-install t)
+ (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode)
+ (setq TeX-view-program-selection '((output-pdf "PDF Tools"))
+ TeX-source-correlate-start-server t)
+ (add-to-list 'revert-without-query "\\.pdf\\'")
+ (add-hook 'TeX-after-compilation-finished-functions
+ #'TeX-revert-document-buffer)
+ (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)))
+
+ (add-hook 'after-init-hook #'esy/pdf-tools-install)
+#+end_src
+
* Programming
:PROPERTIES:
:CUSTOM_ID: programming
:END:
#+begin_src emacs-lisp
- (require 'sweep)
- (add-to-list 'auto-mode-alist '("\\.pl\\'" . sweep-mode))
- (add-to-list 'auto-mode-alist '("\\.plt\\'" . sweep-mode))
+ (require 'sweeprolog)
+ (add-to-list 'auto-mode-alist '("\\.pl\\'" . sweeprolog-mode))
+ (add-to-list 'auto-mode-alist '("\\.plt\\'" . sweeprolog-mode))
#+end_src
*** Make =rg= regard =.pl= files as Prolog rather than Perl
(add-hook 'project-find-functions #'project-try-iprolog -10))
#+end_src
-* LaTeX and PDF settings
-:PROPERTIES:
-:CUSTOM_ID: latex-and-pdf
-:END:
-
-#+begin_src emacs-lisp
- (defun esy/pdf-tools-install ()
- "Install PDF-Tools on demand."
- (interactive)
- (require 'tex)
- (require 'pdf-tools)
- (require 'pdf-view)
- (pdf-tools-install t)
- (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode)
- (setq TeX-view-program-selection '((output-pdf "PDF Tools"))
- TeX-source-correlate-start-server t)
- (add-to-list 'revert-without-query "\\.pdf\\'")
- (add-hook 'TeX-after-compilation-finished-functions
- #'TeX-revert-document-buffer)
- (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)))
-
- (add-hook 'after-init-hook #'esy/pdf-tools-install)
-#+end_src
-
* =vc= customizations
:PROPERTIES:
:CUSTOM_ID: vc-follow-symlinks-t
#+begin_src emacs-lisp
(with-eval-after-load 'sql
+ (setq sqlformat-command 'pgformatter)
+ (define-key sql-mode-map (kbd "C-c C-f") 'sqlformat)
(setq sql-connection-alist
(let* ((a (auth-source-search :port 5432
:max 3