X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/e01774541ba3eab18bf8c21813b9a022ea6f69be..bb65cc2c65192c71b1be24a7f33bf3d2b3a669d6:/.emacs.d/init.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4183865..0500aa8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -158,21 +158,7 @@ (setq read-file-name-completion-ignore-case t)) ;; `startup' -;; don't need to see the startup echo area message -(advice-add #'display-startup-echo-area-message :override #'ignore) -(setq - auto-save-list-file-prefix (b/var "auto-save/sessions/") - ;; i want *scratch* as my startup buffer - initial-buffer-choice t - ;; i don't need the default hint - initial-scratch-message nil - ;; use customizable text-mode as major mode for *scratch* - ;; (initial-major-mode 'text-mode) - ;; inhibit buffer list when more than 2 files are loaded - inhibit-startup-buffer-menu t - ;; don't need to see the startup screen or echo area message - inhibit-startup-screen t - inhibit-startup-echo-area-message user-login-name) +(setq auto-save-list-file-prefix (b/var "auto-save/sessions/")) (with-eval-after-load 'files (setq @@ -436,9 +422,8 @@ Make N (default: 1) copies of the current line or region." "Invert the `default' face (swap its background and foreground). Effectively a very simple light/dark theme toggle switch." (interactive) - (invert-face 'default) - (when (display-graphic-p) - (invert-face 'mode-line))) + (invert-face 'default (selected-frame)) + (invert-face 'mode-line (selected-frame))) (defun b/export-frame () (interactive) @@ -454,11 +439,11 @@ Effectively a very simple light/dark theme toggle switch." ;;; General key bindings (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 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 s") #'b/*scratch*) +(global-set-key (kbd "C-c s c") #'b/*scratch*) (global-set-key (kbd "C-c x") #'execute-extended-command) (global-set-key (kbd "C-c v") #'b/invert-default-face) @@ -601,8 +586,8 @@ Effectively a very simple light/dark theme toggle switch." scpaste-scp-destination "p:~")) (autoload 'scpaste "scpaste" nil t) (autoload 'scpaste-region "scpaste" nil t) -(global-set-key (kbd "C-c a p p") #'scpaste) -(global-set-key (kbd "C-c a p r") #'scpaste-region) +(global-set-key (kbd "C-c p p") #'scpaste) +(global-set-key (kbd "C-c p r") #'scpaste-region) ;;; Editing @@ -845,7 +830,7 @@ Effectively a very simple light/dark theme toggle switch." (setq eww-download-directory (file-name-as-directory (getenv "XDG_DOWNLOAD_DIR")))) -(global-set-key (kbd "C-c a e w") #'eww) +(global-set-key (kbd "C-c e w") #'eww) ;; (with-eval-after-load 'org-ref ;; (setq @@ -854,11 +839,10 @@ Effectively a very simple light/dark theme toggle switch." ;; org-ref-bibliography-notes "~/usr/org/notes.org" ;; org-ref-pdf-directory "~/usr/org/bibtex-pdfs/")) -(when (featurep 'display-fill-column-indicator) - (run-with-idle-timer - 0.2 nil #'require 'display-fill-column-indicator) - (with-eval-after-load 'display-fill-column-indicator - (global-display-fill-column-indicator-mode 1))) +(run-with-idle-timer + 0.2 nil #'require 'display-fill-column-indicator nil 'noerror) +(with-eval-after-load 'display-fill-column-indicator + (global-display-fill-column-indicator-mode 1)) (with-eval-after-load 'window (setq split-width-threshold 150)