summaryrefslogtreecommitdiff
path: root/nemacs-util.el
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-05-28 11:19:22 -0700
committerChristian Cunningham <cc@localhost>2024-05-28 11:19:22 -0700
commitf14c2d3fe50de3c55e7c9684e93cdf5608a00b89 (patch)
treea8ea3bdb68779ecdce6d7be8b7d8f56a9ff3b4c1 /nemacs-util.el
Initial Commit
Diffstat (limited to 'nemacs-util.el')
-rw-r--r--nemacs-util.el54
1 files changed, 54 insertions, 0 deletions
diff --git a/nemacs-util.el b/nemacs-util.el
new file mode 100644
index 0000000..e847891
--- /dev/null
+++ b/nemacs-util.el
@@ -0,0 +1,54 @@
+(setq create-lockfiles disable-lockfiles)
+(setq backup-directory-alist
+ `((".*" . ,temporary-file-directory)))
+(setq auto-save-file-name-transforms
+ `((".*" ,temporary-file-directory t)))
+
+(setq image-types (cons 'svg image-types))
+
+(menu-bar-mode -1)
+(scroll-bar-mode -1)
+(toggle-scroll-bar -1)
+(tool-bar-mode -1)
+(set-fringe-mode 0)
+(display-battery-mode +1)
+(global-prettify-symbols-mode t)
+(blink-cursor-mode +1)
+(global-hl-line-mode -1)
+(global-visual-line-mode +1)
+(blink-cursor-mode +1)
+(global-hl-line-mode -1)
+(global-visual-line-mode +1)
+
+(setq-default indicate-empty-lines +1
+ indicate-buffer-boundaries +1)
+
+(setq electric-pair-pairs '(
+ (?\{ . ?\})
+ (?\( . ?\))
+ (?\[ . ?\])
+ (?\" . ?\")
+ ))
+(electric-pair-mode t)
+
+(defun nemacs/my-frame-config (&optional frame)
+ (with-selected-frame (or frame (selected-frame))
+ (set-frame-parameter (selected-frame) 'alpha '(95 . 90))
+ (cond
+ ((find-font (font-spec :name "Andale Mono"))
+ (set-frame-font "Andale Mono-14")))
+ (set-face-attribute 'default nil :height 140)))
+
+(defun nemacs/my-silly-frame-config (&optional frame)
+ (with-selected-frame (or frame (selected-frame))
+ (set-frame-parameter (selected-frame) 'alpha '(95 . 90))
+ (cond
+ ((find-font (font-spec :name "Liga Comic Mono"))
+ (set-frame-font "Liga Comic Mono-14")))
+ (set-face-attribute 'default nil :height 140)))
+
+(add-to-list 'default-frame-alist '(fullscreen . maximized))
+(add-hook 'after-make-frame-functions 'nemacs/my-frame-config)
+(add-hook 'after-init-hook 'nemacs/my-frame-config)
+
+(provide 'nemacs-util)