blob: 778443fb1f5781e00e7b28ffe7ba040d9b518674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
;; -*- lexical-binding: t; -*-
;; reduce the frequency of garbage collection by making it happen on
;; each 50MB of allocated data (the default is on every 0.76MB)
(setopt gc-cons-threshold 50000000)
(load (expand-file-name "$HOME/.config/emacs/bd-default.el"))
(defun match-buffer-name (name)
"Returns non-nil if NAME matches the name of an existing buffer"
(try-completion name (mapcar #'buffer-name (buffer-list))))
(defun clamp (lower-bound upper-bound value)
(max lower-bound (min value upper-bound)))
(load (expand-file-name "$HOME/.config/emacs/bd-org.el"))
(load (expand-file-name "$HOME/.config/emacs/bd-emms.el"))
(load (expand-file-name "$HOME/.config/emacs/bd-development.el"))
(setopt erc-server "irc.libera.chat"
erc-nick "Isaz"
erc-user-full-name "bd"
erc-kill-buffer-on-part t
erc-autojoin-channels-alist '(("irc.libera.chat" "#parabola" "#emacs")))
(defalias 'erc 'erc-tls)
;; dired
(setopt dired-listing-switches "-alh")
(use-package vertico
:init
(vertico-mode)
:custom
(vertico-cycle t))
;; dired
(global-set-key (kbd "C-z d") 'dired-jump)
(load (expand-file-name "$HOME/.config/emacs/bd-wm.el"))
(load (expand-file-name "$HOME/.config/emacs/bd-mode-and-themes.el"))
(setopt gc-cons-threshold 800000)
|