diff options
| -rw-r--r-- | config/emacs/early-init.el | 4 | ||||
| -rw-r--r-- | config/emacs/init.el | 7 | ||||
| -rw-r--r-- | config/emacs/ligatures.el | 17 | ||||
| -rw-r--r-- | config/emacs/sanemacs.el | 37 |
4 files changed, 33 insertions, 32 deletions
diff --git a/config/emacs/early-init.el b/config/emacs/early-init.el index 4036466..fda615f 100644 --- a/config/emacs/early-init.el +++ b/config/emacs/early-init.el @@ -8,8 +8,8 @@ ;; Configure package.el directories (setq - package-user-dir "~/.cache/emacs/elpa/" - package-gnupghome-dir "~/.cache/emacs/elpa/gnupg") + package-user-dir "~/.cache/emacs/elpa/" + package-gnupghome-dir "~/.cache/emacs/elpa/gnupg") ;; Configure native-comp cache direactory (when (boundp 'native-comp-eln-load-path) diff --git a/config/emacs/init.el b/config/emacs/init.el index 1104876..9bc916d 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -52,9 +52,10 @@ :config (global-undo-tree-mode +1)) -(use-package which-key - :config - (which-key-mode +1)) +(unless (fboundp 'which-key-mode) + (use-package which-key + :config + (which-key-mode +1))) ;;; ;;; OCaml diff --git a/config/emacs/ligatures.el b/config/emacs/ligatures.el index 428675b..afb3d38 100644 --- a/config/emacs/ligatures.el +++ b/config/emacs/ligatures.el @@ -1,26 +1,25 @@ ;;; -*- lexical-binding: t -*- -(defconst - ligatures-berkeley-mono - '(; Group A +(defconst ligatures-berkeley-mono + '(;; Group A ".." ".=" "..." "..<" "::" ":::" ":=" "::=" ";;" ";;;" "??" "???" ".?" "?." ":?" "?:" "?=" "**" "***" "/*" "*/" "/**" - ; Group B + ;; Group B "<-" "->" "-<" ">-" "<--" "-->" "<<-" "->>" "-<<" ">>-" "<-<" ">->" "<-|" "|->" "-|" "|-" "||-" "<!--" "<#--" "<=" "=>" ">=" "<==" "==>" "<<=" "=>>" "=<<" ">>=" "<=<" ">=>" "<=|" "|=>" "<=>" "<==>" "||=" "|=" "//=" "/=" - ; Group C + ;; Group C "<<" ">>" "<<<" ">>>" "<>" "<$" "$>" "<$>" "<+" "+>" "<+>" "<:" ":<" "<:<" ">:" ":>" "<~" "~>" "<~>" "<<~" "<~~" "~~>" "~~" "<|" "|>" "<|>" "<||" "||>" "<|||" "|||>" "</" "/>" "</>" "<*" "*>" "<*>" ":?>" - ; Group D + ;; Group D "#(" "#{" "#[" "]#" "#!" "#?" "#=" "#_" "#_(" "##" "###" "####" - ; Group E + ;; Group E "[|" "|]" "[<" ">]" "{!!" "!!}" "{|" "|}" "{{" "}}" "{{--" "--}}" "{!--" "//" "///" "!!" - ; Group F + ;; Group F "www" "@_" "&&" "&&&" "&=" "~@" "++" "+++" "/\\" "\\/" "_|_" "||" - ; Group G + ;; Group G "=:" "=:=" "=!=" "==" "===" "=/=" "=~" "~-" "^=" "__" "!=" "!==" "-~" "--" "---") "Ligatures for the Berkeley Mono font.") diff --git a/config/emacs/sanemacs.el b/config/emacs/sanemacs.el index 524eee5..222b6b8 100644 --- a/config/emacs/sanemacs.el +++ b/config/emacs/sanemacs.el @@ -4,28 +4,32 @@ (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) -(column-number-mode) +(if (fboundp 'which-key-mode) (which-key-mode +1)) +(column-number-mode +1) (add-hook 'prog-mode-hook #'display-line-numbers-mode) +(when (fboundp 'completion-preview-mode) + (add-hook 'prog-mode-hook #'completion-preview-mode)) (fset 'yes-or-no-p 'y-or-n-p) (setq - inhibit-startup-screen t - initial-major-mode 'fundamental-mode - initial-scratch-message "" - sentence-end-double-space nil) + inhibit-startup-screen t + initial-major-mode 'fundamental-mode + initial-scratch-message "" + sentence-end-double-space nil) (setq-default - cursor-type 'bar - show-trailing-whitespace t - tab-width 4) + cursor-type 'bar + indent-tab-mode nil + show-trailing-whitespace t + tab-width 4) (load-theme 'modus-vivendi) ;; Write auto-saves, backups and bookmarks to `.cache` directory (setq - auto-save-list-file-prefix "~/.cache/emacs/auto-save/" - auto-save-file-name-transforms '((".*" "~/.cache/emacs/auto-save/" t)) - backup-by-copying t - backup-directory-alist '((".*" . "~/.cache/emacs/backup/")) - bookmark-default-file "~/.cache/emacs/bookmarks" - create-lockfiles nil) + auto-save-list-file-prefix "~/.cache/emacs/auto-save/" + auto-save-file-name-transforms '((".*" "~/.cache/emacs/auto-save/" t)) + backup-by-copying t + backup-directory-alist '((".*" . "~/.cache/emacs/backup/")) + bookmark-default-file "~/.cache/emacs/bookmarks" + create-lockfiles nil) ;; Configure TRAMP (with-eval-after-load 'tramp-cache @@ -40,9 +44,6 @@ ;; Configure package management (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) -(setq package-archive-priorities - '(("gnu" . 42) - ("nongnu" . 42) - ("melpa" . 0))) +(setq package-archive-priorities '(("gnu" . 1) ("nongnu" . 1) ("melpa" . 0))) (require 'use-package) (setq use-package-always-ensure t) |
