diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
commit | c6c985d1188830ac90a546cfa27a77c220c9d096 (patch) | |
tree | b2aaaebfbcbd4141eb6ca5cf533a7e0db2cbe962 /.emacs.d | |
parent | 2a5d171484392d55f3abfd9e48807edc77c182b0 (diff) | |
download | dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.tar.gz dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.zip |
Add stumpwm and change disk config for berserker.
Diffstat (limited to '.emacs.d')
-rwxr-xr-x | .emacs.d/init.el | 7 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-custom.el | 13 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-dev.el | 87 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-exwm.el | 20 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-mu4e.el | 127 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-org.el | 41 | ||||
-rwxr-xr-x | .emacs.d/jd/jd-ui.el | 41 |
7 files changed, 171 insertions, 165 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d4fc30a..96b81da 100755 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el | |||
@@ -55,7 +55,9 @@ | |||
55 | version-control t | 55 | version-control t |
56 | delete-old-versions t | 56 | delete-old-versions t |
57 | kept-new-versions 20 | 57 | kept-new-versions 20 |
58 | kept-old-versions 5) | 58 | kept-old-versions 5 |
59 | custom-file (concat user-emacs-directory | ||
60 | "custom.el")) | ||
59 | 61 | ||
60 | ;; (setq user-emacs-directory "~/.cache/emacs") | 62 | ;; (setq user-emacs-directory "~/.cache/emacs") |
61 | 63 | ||
@@ -120,3 +122,6 @@ | |||
120 | (setq gc-cons-threshold (* 2 1000 1000)) | 122 | (setq gc-cons-threshold (* 2 1000 1000)) |
121 | 123 | ||
122 | ;;; init.el ends here | 124 | ;;; init.el ends here |
125 | (put 'upcase-region 'disabled nil) | ||
126 | (put 'downcase-region 'disabled nil) | ||
127 | (put 'set-goal-column 'disabled nil) | ||
diff --git a/.emacs.d/jd/jd-custom.el b/.emacs.d/jd/jd-custom.el index 96d13c6..f48f761 100755 --- a/.emacs.d/jd/jd-custom.el +++ b/.emacs.d/jd/jd-custom.el | |||
@@ -17,6 +17,19 @@ | |||
17 | clipboard-file-path)) | 17 | clipboard-file-path)) |
18 | (find-file clipboard-out-image))) | 18 | (find-file clipboard-out-image))) |
19 | 19 | ||
20 | (defun jd/dired-open-file-in-kill-ring () | ||
21 | (interactive) | ||
22 | (let* ((last-killed (car kill-ring)) | ||
23 | (exists-p (file-exists-p last-killed)) | ||
24 | (dir-p (file-directory-p last-killed))) | ||
25 | (cond | ||
26 | ((not exists-p) (message "File doesn't exists!")) | ||
27 | (dir-p (dired last-killed)) | ||
28 | ((not dir-p) (find-file last-killed))))) | ||
29 | |||
30 | (global-set-key (kbd "C-c O") #'jd/dired-open-file-in-kill-ring) | ||
31 | |||
32 | |||
20 | (setq erc-nick "bobbma" | 33 | (setq erc-nick "bobbma" |
21 | erc-user-full-name "Jakub Dlugosz" | 34 | erc-user-full-name "Jakub Dlugosz" |
22 | erc-notify-list '("akuleszaa")) | 35 | erc-notify-list '("akuleszaa")) |
diff --git a/.emacs.d/jd/jd-dev.el b/.emacs.d/jd/jd-dev.el index d69313e..bd8d4ee 100755 --- a/.emacs.d/jd/jd-dev.el +++ b/.emacs.d/jd/jd-dev.el | |||
@@ -9,6 +9,7 @@ | |||
9 | (setq gdb-many-windows t) | 9 | (setq gdb-many-windows t) |
10 | 10 | ||
11 | (jd/use-package lsp-mode "emacs-lsp-mode" | 11 | (jd/use-package lsp-mode "emacs-lsp-mode" |
12 | :diminish t | ||
12 | :commands (lsp lsp-deferred) | 13 | :commands (lsp lsp-deferred) |
13 | :init | 14 | :init |
14 | (setq lsp-headerline-breadcrumb-enable nil) | 15 | (setq lsp-headerline-breadcrumb-enable nil) |
@@ -22,38 +23,33 @@ | |||
22 | :after lsp) | 23 | :after lsp) |
23 | 24 | ||
24 | (jd/use-package paredit "emacs-paredit") | 25 | (jd/use-package paredit "emacs-paredit") |
25 | ;; (jd/use-package evil-paredit "emacs-evil-paredit" | ||
26 | ;; :config | ||
27 | ;; (defun jd/lisp-mode-setup () | ||
28 | ;; (rainbow-delimiters-mode) | ||
29 | ;; (evil-paredit-mode) | ||
30 | ;; (paredit-mode)) | ||
31 | ;; (add-hook 'emacs-startup-hook | ||
32 | ;; (lambda () | ||
33 | ;; (add-hook 'scheme-mode-hook 'jd/lisp-mode-setup) | ||
34 | ;; (add-hook 'emacs-lisp-mode-hook 'jd/lisp-mode-setup) | ||
35 | ;; (add-hook 'clojure-mode-hook 'jd/lisp-mode-setup) | ||
36 | ;; (add-hook 'lisp-mode-hook 'jd/lisp-mode-setup))) | ||
37 | ;; (evil-define-key 'normal paredit-mode-map (kbd "g h") 'paredit-forward-barf-sexp) | ||
38 | ;; (evil-define-key 'normal paredit-mode-map (kbd "g l") 'paredit-forward-slurp-sexp) | ||
39 | ;; (evil-define-key 'normal paredit-mode-map (kbd "g H") 'paredit-backward-slurp-sexp) | ||
40 | ;; (evil-define-key 'normal paredit-mode-map (kbd "g L") 'paredit-backward-barf-sexp)) | ||
41 | (jd/use-package rainbow-delimiters "emacs-rainbow-delimiters") | ||
42 | 26 | ||
43 | (jd/use-package geiser "emacs-geiser") | 27 | (defun jd/lisp-mode-setup () |
44 | (jd/use-package geiser-guile "emacs-geiser-guile") | 28 | (rainbow-delimiters-mode) |
29 | (paredit-mode)) | ||
30 | |||
31 | (add-hook 'emacs-startup-hook | ||
32 | (lambda () | ||
33 | (add-hook 'scheme-mode-hook 'jd/lisp-mode-setup) | ||
34 | (add-hook 'emacs-lisp-mode-hook 'jd/lisp-mode-setup) | ||
35 | (add-hook 'clojure-mode-hook 'jd/lisp-mode-setup) | ||
36 | (add-hook 'lisp-mode-hook 'jd/lisp-mode-setup))) | ||
45 | 37 | ||
46 | ;; (defun jd/python-mode-setup () | 38 | (jd/use-package rainbow-delimiters "emacs-rainbow-delimiters") |
47 | ;; (let ((project-venv-path (concat (projectile-project-root) "venv/"))) | ||
48 | ;; (when (projectile--directory-p project-venv-path) | ||
49 | ;; (pyvenv-activate project-venv-path) | ||
50 | ;; (pyvenv-mode)))) | ||
51 | 39 | ||
52 | ;; (jd/use-package python-mode ;;TODO: find alternative | 40 | (jd/use-package sly "emacs-sly") |
53 | ;; :hook (python-mode . lsp-deferred) | 41 | |
54 | ;; :hook (python-mode . jd/python-mode-setup) | 42 | (jd/use-package geiser "emacs-geiser") |
55 | ;; :config | 43 | (jd/use-package geiser-racket "emacs-geiser-racket") |
56 | ;; (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))) | 44 | (jd/use-package racket-mode "emacs-racket-mode") |
45 | (jd/use-package geiser-guile "emacs-geiser-guile" | ||
46 | :config | ||
47 | (when jd/guix-p | ||
48 | (defun jd/guix-repl () | ||
49 | (interactive) | ||
50 | (let ((geiser-guile-binary '("guix" "repl")) | ||
51 | (geiser-guile-load-path (cons "~/dotfiles/guix" geiser-guile-load-path))) | ||
52 | (geiser 'guile))))) | ||
57 | 53 | ||
58 | (jd/use-package pyvenv "emacs-pyvenv" | 54 | (jd/use-package pyvenv "emacs-pyvenv" |
59 | :after python-mode) | 55 | :after python-mode) |
@@ -63,11 +59,7 @@ | |||
63 | :config | 59 | :config |
64 | (setq typescript-indent-level 2)) | 60 | (setq typescript-indent-level 2)) |
65 | 61 | ||
66 | ;; (defun jd/activate-tide-mode () | 62 | (jd/use-package cider "emacs-cider") |
67 | ;; (when (and (stringp buffer-file-name) | ||
68 | ;; (string-match "\\.[tj]sx?\\'" buffer-file-name)) | ||
69 | ;; (tide-setup) | ||
70 | ;; (tide-hl-identifier-mode))) | ||
71 | 63 | ||
72 | (jd/use-package tide "emacs-tide" | 64 | (jd/use-package tide "emacs-tide" |
73 | :after (typescript-mode company web-mode)) | 65 | :after (typescript-mode company web-mode)) |
@@ -94,6 +86,9 @@ | |||
94 | (jd/use-package yaml-mode "emacs-yaml-mode") | 86 | (jd/use-package yaml-mode "emacs-yaml-mode") |
95 | 87 | ||
96 | (jd/use-package docker "emacs-docker" | 88 | (jd/use-package docker "emacs-docker" |
89 | :bind | ||
90 | ("C-c D d" . docker-containers) | ||
91 | ("C-c D D" . docker) | ||
97 | :config | 92 | :config |
98 | (jd/leader-key-def | 93 | (jd/leader-key-def |
99 | "d" '(:ignore t :which-key "Docker") | 94 | "d" '(:ignore t :which-key "Docker") |
@@ -101,6 +96,7 @@ | |||
101 | "dd" '(docker :which-key "Docker"))) | 96 | "dd" '(docker :which-key "Docker"))) |
102 | 97 | ||
103 | (jd/use-package company "emacs-company" | 98 | (jd/use-package company "emacs-company" |
99 | :diminish t | ||
104 | :after lsp-mode | 100 | :after lsp-mode |
105 | :hook (lsp-mode . company-mode) | 101 | :hook (lsp-mode . company-mode) |
106 | :bind (:map company-active-map | 102 | :bind (:map company-active-map |
@@ -114,6 +110,7 @@ | |||
114 | (global-company-mode)) | 110 | (global-company-mode)) |
115 | 111 | ||
116 | (jd/use-package company-box "emacs-company-box" | 112 | (jd/use-package company-box "emacs-company-box" |
113 | :diminish t | ||
117 | :hook (company-mode . company-box-mode)) | 114 | :hook (company-mode . company-box-mode)) |
118 | 115 | ||
119 | (jd/use-package projectile "emacs-projectile" | 116 | (jd/use-package projectile "emacs-projectile" |
@@ -135,15 +132,6 @@ | |||
135 | :init | 132 | :init |
136 | (setq neo-theme 'icons) | 133 | (setq neo-theme 'icons) |
137 | :config | 134 | :config |
138 | |||
139 | ;; (evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) | ||
140 | ;; (evil-define-key 'normal neotree-mode-map (kbd "C-RET") 'neotree-quick-look) | ||
141 | ;; (evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide) | ||
142 | ;; (evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) | ||
143 | ;; (evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh) | ||
144 | ;; (evil-define-key 'normal neotree-mode-map (kbd "A") 'neotree-stretch-toggle) | ||
145 | ;; (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle) | ||
146 | |||
147 | (jd/leader-key-def | 135 | (jd/leader-key-def |
148 | "op" '(jd/neotree-project-dir :which-key "Open neotree")) | 136 | "op" '(jd/neotree-project-dir :which-key "Open neotree")) |
149 | 137 | ||
@@ -162,11 +150,16 @@ | |||
162 | 150 | ||
163 | (jd/use-package magit "emacs-magit" | 151 | (jd/use-package magit "emacs-magit" |
164 | :custom | 152 | :custom |
165 | (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1) | 153 | (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) |
166 | 154 | ||
167 | (jd/leader-key-def | 155 | (jd/use-package restclient "emacs-restclient") |
168 | "g" '(:ignore t :which-key "Git") | 156 | |
169 | "gg" '(magit-status-here :which-key "Magit status"))) | 157 | (setq sql-connection-alist |
158 | '(("net47-abaks" | ||
159 | (sql-product 'postgres) | ||
160 | (sql-user "kuba") | ||
161 | (sql-database "net47") | ||
162 | (sql-server "net47.abaks.pl")))) | ||
170 | 163 | ||
171 | (provide 'jd-dev) | 164 | (provide 'jd-dev) |
172 | 165 | ||
diff --git a/.emacs.d/jd/jd-exwm.el b/.emacs.d/jd/jd-exwm.el index ed1c673..f083c44 100755 --- a/.emacs.d/jd/jd-exwm.el +++ b/.emacs.d/jd/jd-exwm.el | |||
@@ -4,6 +4,8 @@ | |||
4 | ;;; Code: | 4 | ;;; Code: |
5 | 5 | ||
6 | 6 | ||
7 | (jd/use-package perspective "emacs-perspective") | ||
8 | |||
7 | (jd/use-package exwm "emacs-exwm" | 9 | (jd/use-package exwm "emacs-exwm" |
8 | :config | 10 | :config |
9 | (defun jd/exwm-update-class () | 11 | (defun jd/exwm-update-class () |
@@ -73,6 +75,7 @@ | |||
73 | ?\M-` | 75 | ?\M-` |
74 | ?\M-& | 76 | ?\M-& |
75 | ?\M-! | 77 | ?\M-! |
78 | ?\C-g | ||
76 | ?\M-: | 79 | ?\M-: |
77 | ?\C-\M-j | 80 | ?\C-\M-j |
78 | ?\C-\ )) | 81 | ?\C-\ )) |
@@ -114,27 +117,24 @@ | |||
114 | (defun jd/dunst-show-history () | 117 | (defun jd/dunst-show-history () |
115 | (interactive) | 118 | (interactive) |
116 | (start-process-shell-command "dunstctl" nil "dunstctl history-pop")) | 119 | (start-process-shell-command "dunstctl" nil "dunstctl history-pop")) |
120 | (global-set-key (kbd "C-c N h") #'jd/dunst-show-history) | ||
117 | 121 | ||
118 | (defun jd/dunst-close () | 122 | (defun jd/dunst-close () |
119 | (interactive) | 123 | (interactive) |
120 | (start-process-shell-command "dunstctl" nil "dunstctl close")) | 124 | (start-process-shell-command "dunstctl" nil "dunstctl close")) |
125 | (global-set-key (kbd "C-c N c") #'jd/dunst-close) | ||
121 | 126 | ||
122 | (defun jd/dunst-close-all () | 127 | (defun jd/dunst-close-all () |
123 | (interactive) | 128 | (interactive) |
124 | (start-process-shell-command "dunstctl" nil "dunstctl close-all")) | 129 | (start-process-shell-command "dunstctl" nil "dunstctl close-all")) |
125 | 130 | (global-set-key (kbd "C-c N a") #'jd/dunst-close-all) | |
126 | (jd/leader-key-def | ||
127 | "d" '(nil :which-key "dunst") | ||
128 | "dh" '(jd/dunst-show-history :which-key "show history") | ||
129 | "dc" '(jd/dunst-close :which-key "close") | ||
130 | "da" '(jd/dunst-close-all :which-key "close all")) | ||
131 | 131 | ||
132 | (desktop-environment-mode)) | 132 | (desktop-environment-mode)) |
133 | 133 | ||
134 | (set-frame-parameter (selected-frame) 'alpha '(90 . 90)) | 134 | ;; (set-frame-parameter (selected-frame) 'alpha '(90 . 90)) |
135 | (add-to-list 'default-frame-alist `(alpha . (90 . 90))) | 135 | ;; (add-to-list 'default-frame-alist `(alpha . (90 . 90))) |
136 | (set-frame-parameter (selected-frame) 'fullscreen 'maximized) | 136 | ;; (set-frame-parameter (selected-frame) 'fullscreen 'maximized) |
137 | (add-to-list 'default-frame-alist '(fullscreen . maximized)) | 137 | ;; (add-to-list 'default-frame-alist '(fullscreen . maximized)) |
138 | 138 | ||
139 | (defun jd-exwm/get-color (ATTRIBUTE) | 139 | (defun jd-exwm/get-color (ATTRIBUTE) |
140 | (face-attribute 'default ATTRIBUTE)) | 140 | (face-attribute 'default ATTRIBUTE)) |
diff --git a/.emacs.d/jd/jd-mu4e.el b/.emacs.d/jd/jd-mu4e.el index e97c4fc..cb81c5c 100755 --- a/.emacs.d/jd/jd-mu4e.el +++ b/.emacs.d/jd/jd-mu4e.el | |||
@@ -3,77 +3,84 @@ | |||
3 | 3 | ||
4 | (jd/use-package htmlize "emacs-htmlize") | 4 | (jd/use-package htmlize "emacs-htmlize") |
5 | 5 | ||
6 | ; (jd/add-package-to-manifest "mbsync") ;; TODO: Define guix mbsync package? | 6 | (jd/add-package-to-manifest "isync") |
7 | 7 | ||
8 | (jd/use-package mu4e "mu" | 8 | (jd/use-package mu4e "mu" |
9 | :defer 10 | 9 | :defer 10 |
10 | :ensure nil | 10 | :ensure nil |
11 | :config | 11 | :bind |
12 | (require 'org-mu4e) | 12 | ("C-c M" . mu4e) |
13 | :config | ||
14 | ;a (require 'org-mu4e) | ||
13 | 15 | ||
14 | (setq mu4e-mu-binary "/usr/local/bin/mu") | 16 | (if jd/guix-p |
15 | (setq mu4e-update-interval (* 10 60)) | 17 | (setq mu4e-mu-binary "/home/jakub/.guix-extra-profiles/emacs/emacs/bin/mu") |
16 | (setq mu4e-get-mail-command "mbsync -a") | 18 | (setq mu4e-mu-binary "/usr/local/bin/mu")) |
17 | (setq mu4e-maildir "~/Mail") | ||
18 | 19 | ||
19 | (setq mu4e-completing-read-function #'ivy-completing-read) | 20 | (setq mu4e-update-interval (* 10 60)) |
21 | (setq mu4e-get-mail-command "mbsync -a") | ||
22 | (setq mu4e-maildir "~/Mail") | ||
20 | 23 | ||
21 | (setq mu4e-change-filenames-when-moving t) | 24 | (setq mu4e-completing-read-function #'ivy-completing-read) |
22 | 25 | ||
23 | (setq mu4e-contexts | 26 | (setq mu4e-change-filenames-when-moving t) |
24 | `(,(make-mu4e-context | ||
25 | :name "Abaks" | ||
26 | :match-func (lambda (msg) (when msg | ||
27 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) | ||
28 | :vars '( | ||
29 | (user-full-name . "Jakub Dlugosz") | ||
30 | (user-mail-address . "jakub@abaks.pl") | ||
31 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
32 | (mu4e-trash-folder . "/abaks/Trash") | ||
33 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
34 | (mu4e-refile-folder . "/abaks/Archive") | ||
35 | (smtpmail-local-domain . "pl") | ||
36 | (smtpmail-smtp-server . "smtp.abaks.pl") | ||
37 | (mu4e-sent-messages-behavior . sent) | ||
38 | )) | ||
39 | ,(make-mu4e-context | ||
40 | :name "Gmail" | ||
41 | :match-func (lambda (msg) (when msg | ||
42 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
43 | :vars '( | ||
44 | (user-full-name . "Jakub Dlugosz") | ||
45 | (user-mail-address . "jdlugosz963@gmail.com") | ||
46 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
47 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
48 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
49 | (mu4e-refile-folder . "/gmail/Archive") | ||
50 | (smtpmail-local-domain . "com") | ||
51 | (smtpmail-smtp-server . "smtp.gmail.com") | ||
52 | (mu4e-sent-messages-behavior . sent) | ||
53 | )))) | ||
54 | 27 | ||
55 | (setq mail-user-agent 'mu4e-user-agent | 28 | (setq mu4e-contexts |
56 | mail-host-address nil | 29 | `(,(make-mu4e-context |
57 | message-send-mail-function 'smtpmail-send-it | 30 | :name "Abaks" |
58 | smtpmail-smtp-service 465 | 31 | :match-func (lambda (msg) (when msg |
59 | smtpmail-stream-type 'ssl) | 32 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) |
33 | :vars '( | ||
34 | (user-full-name . "Jakub Dlugosz") | ||
35 | (user-mail-address . "jakub@abaks.pl") | ||
36 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
37 | (mu4e-trash-folder . "/abaks/Trash") | ||
38 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
39 | (mu4e-refile-folder . "/abaks/Archive") | ||
40 | (mu4e-sent-messages-behavior . sent) | ||
41 | (smtpmail-local-domain . "pl") | ||
42 | (smtpmail-smtp-server . "smtp.abaks.pl") | ||
43 | (smtpmail-smtp-user . "jakub@abaks.pl"))) | ||
44 | ,(make-mu4e-context | ||
45 | :name "Gmail" | ||
46 | :match-func (lambda (msg) (when msg | ||
47 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
48 | :vars '( | ||
49 | (user-full-name . "Jakub Dlugosz") | ||
50 | (user-mail-address . "jdlugosz963@gmail.com") | ||
51 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
52 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
53 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
54 | (mu4e-refile-folder . "/gmail/Archive") | ||
55 | (smtpmail-local-domain . "com") | ||
56 | (smtpmail-smtp-server . "smtp.gmail.com") | ||
57 | (smtpmail-smtp-user . "jdlugosz963@gmail.com") | ||
58 | (mu4e-sent-messages-behavior . sent))))) | ||
60 | 59 | ||
61 | (setq mu4e-compose-signature (concat | 60 | (setq mail-user-agent 'mu4e-user-agent |
62 | "Pozdrawiam,\n" | 61 | mail-host-address nil |
63 | "Jakub Długosz")) | 62 | message-send-mail-function 'smtpmail-send-it |
63 | smtpmail-smtp-service 465 | ||
64 | smtpmail-stream-type 'ssl | ||
65 | smtpmail-servers-requiring-authorization ".*") | ||
64 | 66 | ||
65 | (mu4e t)) | 67 | (setq mu4e-compose-signature (concat |
68 | "Pozdrawiam,\n" | ||
69 | "Jakub Długosz")) | ||
70 | |||
71 | (mu4e t) | ||
72 | (mu4e-modeline-mode nil)) | ||
66 | 73 | ||
67 | (jd/use-package mu4e-alert "emacs-mu4e-alert" | 74 | (jd/use-package mu4e-alert "emacs-mu4e-alert" |
68 | :defer 20 | 75 | :defer 20 |
69 | :config | 76 | :config |
70 | (mu4e-alert-set-default-style 'libnotify) | 77 | (mu4e-alert-set-default-style 'libnotify) |
71 | (mu4e-alert-enable-mode-line-display) | 78 | (mu4e-alert-enable-mode-line-display) |
72 | (mu4e-alert-enable-notifications) | 79 | (mu4e-alert-enable-notifications) |
73 | 80 | ||
74 | (jd/leader-key-def | 81 | (jd/leader-key-def |
75 | "m" '(:ignore t :which-key "mail") | 82 | "m" '(:ignore t :which-key "mail") |
76 | "mm" 'mu4e | 83 | "mm" 'mu4e |
77 | "mc" 'mu4e-compose-new)) | 84 | "mc" 'mu4e-compose-new)) |
78 | 85 | ||
79 | (provide 'jd-mu4e) | 86 | (provide 'jd-mu4e) |
diff --git a/.emacs.d/jd/jd-org.el b/.emacs.d/jd/jd-org.el index cd05d72..fe273c3 100755 --- a/.emacs.d/jd/jd-org.el +++ b/.emacs.d/jd/jd-org.el | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | (defvar jd/org-home "~/Documents/Org") | 6 | (defvar jd/org-home "~/Documents/Org") |
7 | (defvar jd/org-roam-home (concat jd/org-home "/roam")) | 7 | (defvar jd/org-roam-home (concat jd/org-home "/roam")) |
8 | (defvar jd/org-roam-daily-home (concat jd/org-home "/roam/daily")) | 8 | (defvar jd/org-roam-daily-home (concat jd/org-roam-home "/daily")) |
9 | 9 | ||
10 | (defun jd/org-mode-init () | 10 | (defun jd/org-mode-init () |
11 | (org-indent-mode) | 11 | (org-indent-mode) |
@@ -20,12 +20,16 @@ | |||
20 | :pin org | 20 | :pin org |
21 | :commands (org-capture org-agenda) | 21 | :commands (org-capture org-agenda) |
22 | :hook (org-mode . jd/org-mode-init) | 22 | :hook (org-mode . jd/org-mode-init) |
23 | :bind | ||
24 | ("C-c o c" . #'org-capture) | ||
25 | ("C-c o p" . #'org-mobile-pull) | ||
26 | ("C-c o P" . #'org-mobile-push) | ||
27 | ("C-c o a" . #'org-agenda) | ||
23 | :config | 28 | :config |
24 | (setq org-directory (file-truename "~/Documents/Org/")) | 29 | (setq org-directory (file-truename "~/Documents/Org/")) |
25 | (setq org-mobile-inbox-for-pull (concat org-directory "flagged.org")) | 30 | (setq org-mobile-inbox-for-pull (concat org-directory "flagged.org")) |
26 | (setq org-mobile-directory "~/Dropbox/Apps/MobileOrg") | 31 | (setq org-mobile-directory "~/Documents/Org/Mobile/") |
27 | (setq org-agenda-files | 32 | (setq org-agenda-files '("Tasks.org" "Inbox.org" "Habits.org")) |
28 | '("Tasks.org")) | ||
29 | (setq org-ellipsis " ▾") | 33 | (setq org-ellipsis " ▾") |
30 | (setq org-agenda-start-with-log-mode t) | 34 | (setq org-agenda-start-with-log-mode t) |
31 | (setq org-log-done 'time) | 35 | (setq org-log-done 'time) |
@@ -50,12 +54,14 @@ | |||
50 | "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) | 54 | "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) |
51 | (require 'org-tempo) | 55 | (require 'org-tempo) |
52 | 56 | ||
57 | |||
53 | (jd/leader-key-def | 58 | (jd/leader-key-def |
54 | "o" '(:ignore t :which-key "Open/Org") | 59 | "o" '(:ignore t :which-key "Open/Org") |
55 | "oc" '(org-capture :which-key "Open org-capture") | 60 | "oc" '(org-capture :which-key "Open org-capture") |
56 | "oop" '(org-mobile-pull :which-key "Org mobile pull") | 61 | "oop" '(org-mobile-pull :which-key "Org mobile pull") |
57 | "ooP" '(org-mobile-push :which-key "Org mobile push") | 62 | "ooP" '(org-mobile-push :which-key "Org mobile push") |
58 | "oa" '(org-agenda :which-key "Open org-agenda")) | 63 | "oa" '(org-agenda :which-key "Open org-agenda")) |
64 | |||
59 | 65 | ||
60 | (defun jd/org-font-setup () | 66 | (defun jd/org-font-setup () |
61 | ;; Replace list hyphen with dot | 67 | ;; Replace list hyphen with dot |
@@ -122,21 +128,7 @@ | |||
122 | (org-babel-tangle)))) | 128 | (org-babel-tangle)))) |
123 | 129 | ||
124 | (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'jd/org-babel-tangle-config))) | 130 | (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'jd/org-babel-tangle-config))) |
125 | 131 | ) | |
126 | (defun jd/org-mode-visual-fill () | ||
127 | (setq visual-fill-column-width 100 | ||
128 | visual-fill-column-center-text t) | ||
129 | (visual-fill-column-mode 1))) | ||
130 | |||
131 | ;; (jd/use-package evil-org "emacs-evil-org" | ||
132 | ;; :after org | ||
133 | ;; :hook (org-mode . (lambda () evil-org-mode)) | ||
134 | ;; :config | ||
135 | ;; (require 'evil-org-agenda) | ||
136 | ;; (evil-org-agenda-set-keys)) | ||
137 | |||
138 | (jd/use-package visual-fill-column "emacs-visual-fill-column" | ||
139 | :hook (org-mode . jd/org-mode-visual-fill)) | ||
140 | 132 | ||
141 | (jd/use-package org-superstar "emacs-org-superstar" | 133 | (jd/use-package org-superstar "emacs-org-superstar" |
142 | :hook (org-mode . org-superstar-mode) | 134 | :hook (org-mode . org-superstar-mode) |
@@ -145,7 +137,6 @@ | |||
145 | (setq org-superstar-remove-leading-stars t) | 137 | (setq org-superstar-remove-leading-stars t) |
146 | (setq org-superstar-headline-bullets-list '("◉" "○" "●" "○" "●" "○" "●"))) | 138 | (setq org-superstar-headline-bullets-list '("◉" "○" "●" "○" "●" "○" "●"))) |
147 | 139 | ||
148 | ; (jd/add-package-to-manifest "emacs-emacsql-sqlite3") | ||
149 | (jd/use-package org-roam "emacs-org-roam" | 140 | (jd/use-package org-roam "emacs-org-roam" |
150 | :custom | 141 | :custom |
151 | (org-roam-directory (file-truename jd/org-roam-home)) | 142 | (org-roam-directory (file-truename jd/org-roam-home)) |
diff --git a/.emacs.d/jd/jd-ui.el b/.emacs.d/jd/jd-ui.el index 1c44a65..7ccab23 100755 --- a/.emacs.d/jd/jd-ui.el +++ b/.emacs.d/jd/jd-ui.el | |||
@@ -22,12 +22,11 @@ | |||
22 | 22 | ||
23 | (defalias 'yes-or-no-p 'y-or-n-p) | 23 | (defalias 'yes-or-no-p 'y-or-n-p) |
24 | 24 | ||
25 | (jd/use-package doom-themes "emacs-doom-themes" | 25 | (require 'diminish) |
26 | :config | ||
27 | ;; (load-theme 'manoj-black t) | ||
28 | ) | ||
29 | 26 | ||
30 | (load-theme 'manoj-dark t) | 27 | (jd/use-package solarized-theme "emacs-solarized-theme" |
28 | :config | ||
29 | (load-theme 'solarized-selenized-black t)) | ||
31 | 30 | ||
32 | (jd/use-package diminish "emacs-diminish") | 31 | (jd/use-package diminish "emacs-diminish") |
33 | 32 | ||
@@ -55,30 +54,25 @@ | |||
55 | (jd/use-package ivy "emacs-ivy" | 54 | (jd/use-package ivy "emacs-ivy" |
56 | :diminish | 55 | :diminish |
57 | :bind | 56 | :bind |
58 | (("C-s" . swiper) | 57 | (("C-s" . swiper)) |
59 | ;; :map ivy-minibuffer-map | ||
60 | ;; ("C-k" . ivy-previous-line) | ||
61 | ;; ("C-j" . ivy-next-line) | ||
62 | ;; :map ivy-switch-buffer-map | ||
63 | ;; ("C-k" . ivy-previous-line) | ||
64 | ) | ||
65 | :config | 58 | :config |
66 | (ivy-mode 1)) | 59 | (ivy-mode 1)) |
67 | 60 | ||
68 | (jd/use-package counsel "emacs-counsel" | 61 | (jd/use-package counsel "emacs-counsel" |
62 | :diminish t | ||
69 | :config | 63 | :config |
70 | (counsel-mode 1) | 64 | (counsel-mode 1) |
71 | 65 | ||
72 | (jd/leader-key-def | 66 | (jd/leader-key-def |
73 | "t" '(:ignore t :which-key "Toggle") | 67 | "t" '(:ignore t :which-key "Toggle") |
74 | "tT" '(toggle-truncate-lines :which-key "Toggle truncate lines") | 68 | "tT" '(toggle-truncate-lines :which-key "Toggle truncate lines") |
75 | "tt" '(jd/load-theme :which-key "Choose theme")) | 69 | "tt" '(jd/load-theme :which-key "Choose theme")) |
76 | 70 | ||
77 | (jd/leader-key-def | 71 | (jd/leader-key-def |
78 | "bb" '(jd/switch-buffer :which-key "Buffer switch") | 72 | "bb" '(jd/switch-buffer :which-key "Buffer switch") |
79 | "ba" '(counsel-switch-buffer :which-key "Buffer switch") | 73 | "ba" '(counsel-switch-buffer :which-key "Buffer switch") |
80 | "b" '(:ignore t :which-key "Buffer") | 74 | "b" '(:ignore t :which-key "Buffer") |
81 | "," '(counsel-switch-buffer :which-key "Buffer switch"))) | 75 | "," '(counsel-switch-buffer :which-key "Buffer switch"))) |
82 | 76 | ||
83 | (jd/use-package which-key "emacs-which-key" | 77 | (jd/use-package which-key "emacs-which-key" |
84 | :diminish | 78 | :diminish |
@@ -88,14 +82,17 @@ | |||
88 | 82 | ||
89 | (jd/use-package all-the-icons "emacs-all-the-icons") | 83 | (jd/use-package all-the-icons "emacs-all-the-icons") |
90 | 84 | ||
91 | (jd/use-package doom-modeline "emacs-doom-modeline" | ||
92 | ; :init (doom-modeline-mode 0) | ||
93 | :custom ((doom-modeline-height 15))) | ||
94 | 85 | ||
95 | (jd/use-package beacon "emacs-beacon" | 86 | (jd/use-package beacon "emacs-beacon" |
96 | :config | 87 | :config |
97 | (beacon-mode 1)) | 88 | (beacon-mode 1)) |
98 | 89 | ||
90 | (setq display-time-string-forms | ||
91 | '(" " 24-hours ":" minutes " ")) | ||
92 | |||
93 | (when jd/exwm-p | ||
94 | (display-battery-mode) | ||
95 | (display-time-mode)) | ||
99 | 96 | ||
100 | (provide 'jd-ui) | 97 | (provide 'jd-ui) |
101 | 98 | ||