;; (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")
;;;; C-level customizations
(csetq
+ ;; line-spacing 3
;; completion case sensitivity
completion-ignore-case t
read-buffer-completion-ignore-case t
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
display-time-mail-icon '(image :type xpm
:file "gnus/gnus-pointer.xpm"
:ascent center)
- display-time-use-mail-icon t)
+ display-time-use-mail-icon t
+ zoneinfo-style-world-list
+ `(,@zoneinfo-style-world-list
+ ("Etc/UTC" "UTC")
+ ("Asia/Tehran" "Tehran")
+ ("Australia/Melbourne" "Melbourne")))
(display-time-mode))
(run-with-idle-timer 0.1 nil #'require 'battery)
(require 'winner)
(winner-mode 1)
+(run-with-idle-timer 0.1 nil #'require 'windmove)
+(with-eval-after-load 'windmove
+ (csetq windmove-wrap-around t)
+ (global-set-key (kbd "M-H") #'windmove-left)
+ (global-set-key (kbd "M-L") #'windmove-right)
+ (global-set-key (kbd "M-K") #'windmove-up)
+ (global-set-key (kbd "M-J") #'windmove-down))
+
(with-eval-after-load 'compile
;; don't display *compilation* buffer on success. based on
;; https://stackoverflow.com/a/17788551, with changes to use `cl-letf'
;; 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")
;; info
(with-eval-after-load 'info
- (add-to-list
- 'Info-directory-list
- (expand-file-name
- (convert-standard-filename "info/") source-directory)))
+ (csetq
+ Info-directory-list
+ `(,@Info-directory-list
+ ,(expand-file-name
+ (convert-standard-filename "info/") source-directory)
+ "/usr/share/info/")))
;; faces
(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 'fixed-pitch nil :family "Source Code Pro")
+ (set-face-attribute 'fixed-pitch nil :family "Inconsolata")
(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
+ :inherit 'fixed-pitch)
+ ;; (set-face-attribute 'mode-line-inactive nil
+ ;; :background darker-grey :box box)
+ )))
\f
;;; Useful utilities
(global-set-key (kbd "C-c f .") #'find-file)
(global-set-key (kbd "C-c f d") #'find-name-dired)
(global-set-key (kbd "C-c f l") #'find-library)
+(global-set-key (kbd "C-c f p") #'find-file-at-point)
;; frames
(global-set-key (kbd "C-c F m") #'make-frame-command)
(csetq shr-max-width 80)
-;; Email (with Gnus and message)
+;; Email (with Gnus, message, and smtpmail)
(require 'bandali-gnus)
(require 'bandali-message)
+;; (with-eval-after-load 'smtpmail
+;; (csetq smtpmail-queue-mail t
+;; smtpmail-queue-dir (concat b/maildir "queue/")))
;; IRC (with ERC)
(require 'bandali-erc)
(delight 'mml-mode " mml" "mml")
(delight 'yas-minor-mode "" "yasnippet"))
+;; po-mode
+(require 'bandali-po)
+
+(with-eval-after-load 'emms
+ (csetq emms-directory (b/var "emms")))
+
\f
;;; Post initialization