X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/29e8b5de2c05a98b43e4ccea9025fbd8442adf97..7079ef45c6f2b2c8b519fc62e20858a2b238284b:/.emacs.d/init.el?ds=sidebyside diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9f645a3..97ad750 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -135,26 +135,19 @@ This sets each user option VAR's value to the corresponding VALUE. ;; (package-generate-description-file d "refinery-theme-pkg.el")) (run-with-idle-timer 0.01 nil #'require 'package) (with-eval-after-load 'package - (when (= (length package-archives) 1) - (csetq - package-archives - `(,@package-archives - ;; ("bndl" . "https://p.bndl.org/elpa/") - ("org" . "https://orgmode.org/elpa/")) - package-load-list - '(;; GNU ELPA - (debbugs "0.26") - (delight "1.7") - (orgalist "1.13") - (rt-liberation "1.31") - (yasnippet "0.14.0") - (expand-region "0.11.0") - (emms "6.2") - ;; bndl - ;; (refinery-theme "0.1.1") - ;; Org ELPA - (org-plus-contrib "20201109")))) - (package-initialize)) + (csetq + ;; package-archives + ;; `(,@package-archives + ;; ("bndl" . "https://p.bndl.org/elpa/")) + package-load-list + '(;; GNU ELPA + (debbugs "0.29") + (delight "1.7") + (emms "7.7") + (expand-region "0.11.0") + (rt-liberation "2.4") + (yasnippet "0.14.0"))) +(package-initialize)) (csetq package-archive-upload-base "/ssh:caffeine:~/www/p/elpa") @@ -220,6 +213,7 @@ This sets each user option VAR's value to the corresponding VALUE. ;;;; C-level customizations (csetq + ;; line-spacing 3 ;; completion case sensitivity completion-ignore-case t read-buffer-completion-ignore-case t @@ -246,7 +240,11 @@ This sets each user option VAR's value to the corresponding VALUE. indent-tabs-mode nil tab-width 4) -(set-fontset-font t 'arabic "Vazir") +(when (display-graphic-p) + (set-fontset-font t 'arabic "Vazir")) +;; ;; (set-frame-font "Drafting Mono-14:weight=light" nil t) +;; (set-frame-font "Drafting Mono:pixelsize=16" nil t) +;; (set-face-attribute 'bold nil :weight 'semi-bold) ;;;; Elisp-level customizations @@ -429,11 +427,6 @@ This sets each user option VAR's value to the corresponding VALUE. ;; this will fail if gpg>=2.1 is not available epg-pinentry-mode 'loopback) -;; (require 'pinentry) -;; workaround for systemd-based distros: -;; (setq pinentry--socket-dir server-socket-dir) -;; (pinentry-start) - ;; auth-source (csetq auth-sources '("~/.authinfo.gpg") @@ -450,13 +443,17 @@ This sets each user option VAR's value to the corresponding VALUE. (when (display-graphic-p) (with-eval-after-load 'faces (let* ((grey "#e7e7e7") - (darker-grey "#d9d9d9") - (box ;; `(:line-width -1 :style released-button) - 'unspecified)) + ;; (darker-grey "#d9d9d9") + ;; (box ;; 'unspecified + ;; `(;; :line-width -1 + ;; :style released-button)) + ) (set-face-attribute 'mode-line nil - :background grey :box box) - (set-face-attribute 'mode-line-inactive nil - :background darker-grey :box box)))) + :background grey ;; :box box + ) + ;; (set-face-attribute 'mode-line-inactive nil + ;; :background darker-grey :box box) + ))) ;;; Useful utilities @@ -973,6 +970,9 @@ Make N (default: 1) copies of the current line or region." ;; po-mode (require 'bandali-po) +(with-eval-after-load 'emms + (csetq emms-directory (b/var "emms"))) + ;;; Post initialization