'(;; GNU ELPA
(debbugs "0.26")
(delight "1.7")
- (ebdb "0.6.19")
+ (ebdb "0.6.20")
(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 "20201012"))))
+ (org-plus-contrib "20201109"))))
(package-initialize))
(csetq package-archive-upload-base "/ssh:caffeine:~/www/p/elpa")
;;;; Elisp-level customizations
+;; (define-key minibuffer-local-completion-map
+;; "\t" #'minibuffer-force-complete)
+
+(with-eval-after-load 'icomplete
+
+(setq icomplete-on-del-error-function #'abort-recursive-edit)
+
+(defun b/icomplete-fido-backward-updir ()
+ "Delete char before or go up directory, like `ido-mode'."
+ (interactive)
+ (if (and (eq (char-before) ?/)
+ (eq (icomplete--category) 'file))
+ (save-excursion
+ (goto-char (1- (point)))
+ (when (search-backward "/" (point-min) t)
+ (delete-region (1+ (point)) (point-max))))
+ (condition-case nil
+ (call-interactively #'delete-backward-char)
+ (error
+ (when icomplete-on-del-error-function
+ (funcall icomplete-on-del-error-function))))))
+
+(define-key icomplete-fido-mode-map
+ (kbd "DEL") #'b/icomplete-fido-backward-updir))
+
;; startup
;; don't need to see the startup echo area message
(advice-add #'display-startup-echo-area-message :override #'ignore)
(global-set-key (kbd "C-a") #'b/move-indentation-or-beginning-of-line)
(global-set-key (kbd "C-c a i") #'ielm)
(global-set-key (kbd "C-c d") #'b/duplicate-line-or-region)
+(global-set-key (kbd "C-c j") #'b/join-line-top)
(global-set-key (kbd "C-S-j") #'b/join-line-top)
(global-set-key (kbd "C-c x") #'execute-extended-command)
(expand-file-name
(convert-standard-filename "lisp") user-emacs-directory))
-(require 'bandali-exwm)
+(when (featurep 'exwm)
+ (require 'bandali-exwm))
(require 'bandali-org)
"Deop myself from current channel."
(erc-cmd-DEOP (format "%s" (erc-current-nick))))
(add-to-list 'erc-modules 'keep-place)
- (add-to-list 'erc-modules 'notifications)
+ (when (display-graphic-p)
+ (add-to-list 'erc-modules 'notifications))
(add-to-list 'erc-modules 'smiley)
(add-to-list 'erc-modules 'spelling)
(declare-function erc-update-modules "erc")
(csetq
erc-pal-highlight-type 'nick
erc-pals
- '("aindilis" "blackbeard" "bremner" "brettgilio" "civodul" "dto"
- "ggoes" "iank" "jrasata" "mplsCorwin" "quidam" "rwp" "sachac"
- "sudoman" "technomancy"))
+ '("aindilis" "blackbeard" "bremner" "~brettgilio?@*" "civodul"
+ "dto" "ggoes" "iank" "jrasata" "mplsCorwin" "quidam" "rwp"
+ "sachac" "sudoman" "technomancy"))
(with-eval-after-load 'erc-match
(set-face-attribute
'erc-pal-face nil
:background (face-attribute 'font-lock-string-face :background)))
;; erc-pcomplete
- (csetq erc-pcomplete-nick-postfix ", ")
+ (csetq erc-pcomplete-nick-postfix ",")
;; erc-stamp
(csetq erc-timestamp-only-if-changed-flag nil
(list ".*<\\(.*\\)\\.iana\\.org>.*" "l.\\1")
;; orbitalfox (e.g. gemini)
(list ".*<\\(.*\\)\\.lists\\.orbitalfox\\.eu>.*" "l.\\1")
+ ;; haskell
+ (list ".*<\\(.*\\)\\.haskell\\.org>.*" "l.\\1")
;; *.lists.sr.ht, omitting one dot if present
;; add more \\.?\\([^.]*\\) if needed
(list ".*<~\\(.*\\)/\\([^.]*\\)\\.?\\([^.]*\\)\\.lists\\.sr\\.ht>.*" "l.~\\1.\\2\\3")
(list ".*atreus.freelists.org" "l.atreus")
(list ".*deepspec.lists.cs.princeton.edu" "l.deepspec")
;; (list ".*haskell-art.we.lurk.org" "l.haskell.art") ;d
- (list ".*haskell-cafe.haskell.org" "l.haskell-cafe")
;; (list ".*notmuch.notmuchmail.org" "l.notmuch") ;u
(list ".*dev.lists.parabola.nu" "l.parabola-dev")
;; ----------------------------------
nndraft-directory (concat gnus-home-directory "drafts/")
gnus-save-newsrc-file nil
gnus-read-newsrc-file nil
+ gnus-search-use-parsed-queries t
gnus-interactive-exit nil
gnus-gcc-mark-as-read t)
;; global key bindings
(global-set-key (kbd "s-m") #'gnus-plugged)
(global-set-key (kbd "s-M") #'gnus-unplugged)
-(global-set-key (kbd "C-c a m") #'gnus-plugged)
-(global-set-key (kbd "C-c a M") #'gnus-unplugged)
+(global-set-key (kbd "C-c m") #'gnus-plugged)
+(global-set-key (kbd "C-c M") #'gnus-unplugged)
(with-eval-after-load 'gnus-art
(csetq
;;; Code:
-(add-to-list 'load-path (b/lisp "refinery-theme"))
-(with-eval-after-load 'package
- (require 'refinery-theme)
- (load-theme 'refinery t))
+(when (display-graphic-p)
+ (add-to-list 'load-path (b/lisp "refinery-theme"))
+ (with-eval-after-load 'package
+ (require 'refinery-theme)
+ (load-theme 'refinery t)))
;; (require 'smart-mode-line)
;; ;; thanks, but no thanks; don't make fixed-width fills.