From: Eshel Yaron Date: Sun, 2 Oct 2022 10:47:10 +0000 (+0300) Subject: Update esy.org X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfea8fb8450e0f0be924c2a6d623f2e1ab48712b;p=dotfiles.git Update esy.org --- diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 7417c27..43078d4 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -113,21 +113,37 @@ For further information about Elisp headers, see [[info:elisp#Library (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 @@ -174,15 +190,6 @@ For further information about Elisp headers, see [[info:elisp#Library (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 @@ -642,6 +649,7 @@ refiling directly into deeper headings as well. #+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.") @@ -764,7 +772,7 @@ refiling directly into deeper headings as well. :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) @@ -849,7 +857,6 @@ refiling directly into deeper headings as well. (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) @@ -1483,6 +1490,30 @@ does in the shell. (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 @@ -1560,9 +1591,9 @@ include =emacs-lisp-mode= and =lisp-interaction-mode=. :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 @@ -1585,30 +1616,6 @@ include =emacs-lisp-mode= and =lisp-interaction-mode=. (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 @@ -1981,6 +1988,8 @@ Add the timezones of places of interest to the list of clocks shown by #+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