]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Update Emacs configuration
authorEshel Yaron <me@eshelyaron.com>
Mon, 31 Jul 2023 07:26:29 +0000 (10:26 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Jul 2023 07:26:29 +0000 (10:26 +0300)
.emacs.d/init.el

index 04ce40b891b4b4f47b01a1f409f26676d7a2edad..6c04a8d84bbbf9b0671ba7fbb34a7ac106271954 100644 (file)
@@ -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))
               (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
  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 "<f5>" #'esy/ef-themes-load-random)
 (keymap-global-set "s-]"  #'esy/ef-themes-load-random)
 (keymap-global-set "s-["  #'esy/ef-themes-load-previous)