summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2024-04-26 18:21:56 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2024-04-27 18:20:11 +0200
commit73af89d935df5a8166114c9257f9f247f29850bf (patch)
treec8addfe86575b030ca5a61644dbc77adb8f63c43 /.emacs.d
parent9ca1ae3ceca5944765af94514e75a96195de5716 (diff)
downloaddotfiles-73af89d935df5a8166114c9257f9f247f29850bf.tar.gz
dotfiles-73af89d935df5a8166114c9257f9f247f29850bf.zip
Migrate from stumpwm to sway and from manifests to home-services.
Diffstat (limited to '.emacs.d')
-rwxr-xr-x.emacs.d/init.el10
-rwxr-xr-x.emacs.d/jd/jd-custom.el16
-rwxr-xr-x.emacs.d/jd/jd-keys.el10
-rwxr-xr-x.emacs.d/jd/jd-org.el2
-rwxr-xr-x.emacs.d/jd/jd-ui.el15
5 files changed, 47 insertions, 6 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 96b81da..a0cb8a0 100755
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -3,7 +3,13 @@
3 3
4;;; Code: 4;;; Code:
5 5
6(setq gc-cons-threshold (* 50 1000 1000)) 6;; Minimize garbage collection during startup
7(setq gc-cons-threshold most-positive-fixnum)
8
9;; Lower threshold back to 8 MiB (default is 800kB)
10(add-hook 'emacs-startup-hook
11 (lambda ()
12 (setq gc-cons-threshold (expt 2 23))))
7 13
8(defvar jd/manifest-list 14(defvar jd/manifest-list
9 nil 15 nil
@@ -119,7 +125,7 @@
119(when jd/exwm-p 125(when jd/exwm-p
120 (require 'jd-exwm)) 126 (require 'jd-exwm))
121 127
122(setq gc-cons-threshold (* 2 1000 1000)) 128;; (setq gc-cons-threshold (* 2 1000 1000))
123 129
124;;; init.el ends here 130;;; init.el ends here
125(put 'upcase-region 'disabled nil) 131(put 'upcase-region 'disabled nil)
diff --git a/.emacs.d/jd/jd-custom.el b/.emacs.d/jd/jd-custom.el
index f48f761..8383e41 100755
--- a/.emacs.d/jd/jd-custom.el
+++ b/.emacs.d/jd/jd-custom.el
@@ -39,6 +39,22 @@
39 (erc :server "195.74.91.18" 39 (erc :server "195.74.91.18"
40 :port "6697")) 40 :port "6697"))
41 41
42
43;; Repair load paths when tramp try to connect to guix instances
44(require 'tramp)
45
46(connection-local-set-profile-variables
47 'guix-system
48 '((tramp-remote-path . (tramp-own-remote-path))))
49
50(connection-local-set-profiles
51 '(:application tramp :protocol "sudo" :machine "localhost")
52 'guix-system)
53
54(connection-local-set-profiles
55 '(:application tramp :protocol "ssh" :machine "jdlugosz.com")
56 'guix-system)
57
42(provide 'jd-custom) 58(provide 'jd-custom)
43 59
44;;; jd-custom.el ends here 60;;; jd-custom.el ends here
diff --git a/.emacs.d/jd/jd-keys.el b/.emacs.d/jd/jd-keys.el
index 7c0d6b2..26a6445 100755
--- a/.emacs.d/jd/jd-keys.el
+++ b/.emacs.d/jd/jd-keys.el
@@ -16,6 +16,16 @@
16;; (evil-set-initial-state 'exwm-mode 'emacs) 16;; (evil-set-initial-state 'exwm-mode 'emacs)
17;; (evil-mode 1)) 17;; (evil-mode 1))
18 18
19(jd/use-package multiple-cursors "emacs-multiple-cursors"
20 :config
21 (global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
22 (global-set-key (kbd "C->") 'mc/mark-next-like-this)
23 (global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
24 (global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this))
25
26(jd/use-package shackle "emacs-shackle")
27(jd/use-package sway "emacs-sway")
28
19(jd/use-package general "emacs-general" 29(jd/use-package general "emacs-general"
20 :config 30 :config
21 (general-create-definer jd/leader-key-def 31 (general-create-definer jd/leader-key-def
diff --git a/.emacs.d/jd/jd-org.el b/.emacs.d/jd/jd-org.el
index f511846..a9565f3 100755
--- a/.emacs.d/jd/jd-org.el
+++ b/.emacs.d/jd/jd-org.el
@@ -16,6 +16,8 @@
16 (let ((d (or date "+0d"))) 16 (let ((d (or date "+0d")))
17 (org-insert-time-stamp (org-read-date nil t d)))) 17 (org-insert-time-stamp (org-read-date nil t d))))
18 18
19(jd/use-package org-pomodoro "emacs-org-pomodoro")
20
19(jd/use-package org "emacs-org" 21(jd/use-package org "emacs-org"
20 :pin org 22 :pin org
21 :commands (org-capture org-agenda) 23 :commands (org-capture org-agenda)
diff --git a/.emacs.d/jd/jd-ui.el b/.emacs.d/jd/jd-ui.el
index f75711b..f3a39bc 100755
--- a/.emacs.d/jd/jd-ui.el
+++ b/.emacs.d/jd/jd-ui.el
@@ -11,11 +11,13 @@
11(menu-bar-mode -1) 11(menu-bar-mode -1)
12(set-fringe-mode 10) 12(set-fringe-mode 10)
13 13
14(jd/add-package-to-manifest "font-terminus") 14(set-frame-parameter (selected-frame) 'alpha '(92 . 92))
15 15(add-to-list 'default-frame-alist '(alpha . (92 . 92)))
16 16
17(custom-set-faces 17(custom-set-faces
18 '(default ((t (:inherit nil :height 100 :family "Terminus"))))) 18 '(default ((t (:inherit nil :height 125 :family "Terminus"))))
19 '(line-number ((t (:inherit nil :height 125 :family "Terminus"))))
20 '(line-number-current-line ((t (:inherit nil :height 125 :family "Terminus")))))
19 21
20(add-hook 'prog-mode-hook 'menu-bar--display-line-numbers-mode-relative) 22(add-hook 'prog-mode-hook 'menu-bar--display-line-numbers-mode-relative)
21 23
@@ -27,9 +29,14 @@
27 29
28(require 'diminish) 30(require 'diminish)
29 31
32(jd/use-package doom-modeline "emacs-doom-modeline"
33 :config
34 (doom-modeline-mode))
35
30(jd/use-package solarized-theme "emacs-solarized-theme" 36(jd/use-package solarized-theme "emacs-solarized-theme"
31 :config 37 :config
32 (load-theme 'solarized-selenized-black t)) 38 (load-theme 'solarized-dark-high-contrast t))
39
33 40
34(jd/use-package diminish "emacs-diminish") 41(jd/use-package diminish "emacs-diminish")
35 42