Skip to content

Commit 4e62fa7

Browse files
committed
general keybindings
1 parent 38c67b3 commit 4e62fa7

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

project-todo.org

Whitespace-only changes.

roles/baseline/files/.config/emacs/init.el

+61
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,68 @@
177177
(embark-collect-mode . consult-preview-at-point-mode))
178178

179179

180+
; ========= Projects and Workspaces ===========
181+
(use-package tabspaces
182+
:hook (after-init . tabspaces-mode) ;; use this only if you want the minor-mode loaded at startup.
183+
:commands (tabspaces-switch-or-create-workspace
184+
tabspaces-open-or-create-project-and-workspace)
185+
:custom
186+
(tabspaces-use-filtered-buffers-as-default t)
187+
(tabspaces-default-tab "Default")
188+
(tabspaces-remove-to-default t)
189+
(tabspaces-include-buffers '("*scratch*"))
190+
(tabspaces-initialize-project-with-todo t)
191+
(tabspaces-todo-file-name "project-todo.org")
192+
;; sessions
193+
(tabspaces-session t)
194+
(tabspaces-session-auto-restore t))
195+
196+
197+
; ======= Prefix Key ========
180198

199+
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
200+
201+
(use-package general)
202+
(require 'general)
203+
204+
(general-create-definer my-leader-def
205+
;; :prefix my-leader
206+
:prefix "SPC")
207+
208+
;; ** Global Keybindings
209+
(my-leader-def
210+
:keymaps 'normal
211+
;; workspaces
212+
"<tab>." 'tabspaces-switch-or-create-workspace
213+
"<tab>k" 'tabspaces-kill-buffers-close-workspace
214+
;; projects
215+
"pp" 'tabspaces-open-or-create-project-and-workspace
216+
"p." 'project-dired
217+
"pd" 'project-find-dir
218+
"SPC" 'project-find-file
219+
;; buffer
220+
"bb" 'consult-project-buffer
221+
"bk" 'kill-current-buffer
222+
;; search
223+
"." 'find-file
224+
"*" 'consult-ripgrep
225+
"l" 'consult-line
226+
;; goto
227+
"gl" 'consult-goto-line
228+
"go" 'consult-outline
229+
;; windows
230+
"wu" 'winner-undo
231+
"wn" 'evil-window-down
232+
"wp" 'evil-window-up
233+
"wb" 'evil-window-left
234+
"wf" 'evil-window-right)
235+
236+
; ======== Lang =========
237+
238+
(use-package yaml-mode)
239+
(use-package highlight-indentation
240+
:config
241+
(highlight-indentation-current-column-mode t))
181242

182243

183244
; ========= HISTORY =============

0 commit comments

Comments
 (0)