aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshton Wiersdorf <ashton.wiersdorf@pobox.com>2023-01-02 12:44:55 -0700
committerAshton Wiersdorf <ashton.wiersdorf@pobox.com>2023-01-02 12:44:55 -0700
commit231ff4f57cccc6618287e0983f6f326915f7ef56 (patch)
treee9bfd57385da535046bd4020ab3f41eb50595bbd
Initial commit
-rw-r--r--early-init.el62
-rw-r--r--init.el2
2 files changed, 64 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
new file mode 100644
index 0000000..f567fcb
--- /dev/null
+++ b/early-init.el
@@ -0,0 +1,62 @@
+;;; Basic settings for speed and convenience
+(setq gc-cons-threshold 100000000)
+(setq byte-compile-warnings '(not obsolete))
+(setq bidi-inhibit-bpa t) ; turn this off if you need right-to-left text
+(setq x-underline-at-descent-line nil)
+(setq line-number-mode t)
+(setq column-number-mode t)
+(setq display-time-default-load-average nil)
+(setq inhibit-startup-screen t)
+(setq frame-resize-pixelwise t)
+(setq initial-major-mode 'fundamental-mode)
+(setq auto-revert-interval 3)
+(setq auto-revert-check-vc-info t)
+(setq switch-to-buffer-obey-display-actions t)
+
+(setq-default show-trailing-whitespace nil)
+(setq-default indicate-buffer-boundaries 'left)
+(setq-default indent-tabs-mode nil)
+(setq-default tab-width 4)
+(setq-default fill-column 80)
+
+;; horizontal scrolling
+(setq mouse-wheel-tilt-scroll t)
+(setq mouse-wheel-flip-direction t)
+
+;; minibuffer/completion
+(setq enable-recursive-minibuffers t)
+(setq completion-cycle-threshold 1)
+(setq tab-always-indent 'complete)
+
+;;; Enable/disable various modes
+(blink-cursor-mode -1)
+(tool-bar-mode -1)
+(savehist-mode)
+(global-auto-revert-mode)
+(pixel-scroll-precision-mode)
+
+;; Silence stupid startup message
+(put 'inhibit-startup-echo-area-message 'saved-value
+ (setq inhibit-startup-echo-area-message (user-login-name)))
+
+;;; tab-bar config: always show, put time in tab-bar
+(setq tab-bar-show 0) ; Always show tab bar
+(add-to-list 'tab-bar-format 'tab-bar-format-align-right 'append)
+(add-to-list 'tab-bar-format 'tab-bar-format-global 'append)
+(setq display-time-format "%a %F %T")
+(setq display-time-interval 1)
+(display-time-mode)
+
+;;; Default frame configuration: full screen, good-looking title bar on macOS
+(setq default-frame-alist '((fullscreen . maximized)
+ (vertical-scroll-bars . nil)
+ (horizontal-scroll-bars . nil)
+ (ns-appearance . dark)
+ (ns-transparent-titlebar . t)
+ (alpha-background . 50)))
+
+;;; Theme
+(load-theme 'modus-vivendi)
+;; Use this if you like light mode
+;(load-theme 'modus-operandi)
+
diff --git a/init.el b/init.el
new file mode 100644
index 0000000..0d44d0c
--- /dev/null
+++ b/init.el
@@ -0,0 +1,2 @@
+(fido-vertical-mode)
+(setq completion-styles '(flex))