From: Eshel Yaron Date: Mon, 31 Jul 2023 07:26:29 +0000 (+0300) Subject: Update Emacs configuration X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=245db9cead78bb86abc6fa8841ccb1d6d475e400;p=dotfiles.git Update Emacs configuration --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 04ce40b..6c04a8d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -9,9 +9,6 @@ ;;; Code: -(when (eq system-type 'darwin) - (setq default-frame-alist '((fullscreen . fullboth)))) - ;;; Temporarily increase GC threshold to expedite Emacs startup (let ((normal-gc-cons-threshold (* 20 1024 1024)) (init-gc-cons-threshold (* 1024 1024 1024)) @@ -23,6 +20,10 @@ (setq gc-cons-threshold normal-gc-cons-threshold mode-line-format normal-mode-line-format)))) +;;; OS-specific settings +(pcase system-type + ('darwin (setq default-frame-alist '((fullscreen . fullboth))))) + ;;; Set some variables (setq ;; my name @@ -233,28 +234,7 @@ save-interprogram-paste-before-kill 2048 ;; have C-u followed by repeated C-SPC keep popping set-mark-command-repeat-pop t - ;; enable italic text in code - modus-themes-italic-constructs t - ;; enable bold text in code - modus-themes-bold-constructs t - ;; use fixed-pitch text where appropriate - modus-themes-mixed-fonts t - ;; make prompts bold - modus-themes-prompts '(bold) - ;; give source blocks a distinct background shade - modus-themes-org-blocks 'gray-background - ;; use variable-pitch text here are there - modus-themes-variable-pitch-ui t ;; fine-tune some theme settings - modus-themes-common-palette-overrides '((border-mode-line-active unspecified) - (border-mode-line-inactive unspecified) - (bg-mode-line-active bg-blue-intense) - (fg-mode-line-active fg-main) - (fringe unspecified) - (underline-link border) - (underline-link-visited border) - (underline-link-symbolic border) - (fg-region unspecified)) ef-themes-mixed-fonts t ef-themes-variable-pitch-ui t ef-themes-region nil @@ -847,7 +827,7 @@ Interactively, POINT is point and KILL is the prefix argument." (keymap-global-set "C-;" #'avy-goto-char-timer) (keymap-global-set "C-s-f" #'toggle-frame-fullscreen) (keymap-global-set "C-s-l" #'esy/pulse-line) -(keymap-global-set "\"" #'insert-pair) +(keymap-global-set "M-\"" #'insert-pair) (keymap-global-set "" #'esy/ef-themes-load-random) (keymap-global-set "s-]" #'esy/ef-themes-load-random) (keymap-global-set "s-[" #'esy/ef-themes-load-previous)