|
177 | 177 | (embark-collect-mode . consult-preview-at-point-mode))
|
178 | 178 |
|
179 | 179 |
|
| 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 ======== |
180 | 198 |
|
| 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)) |
181 | 242 |
|
182 | 243 |
|
183 | 244 | ; ========= HISTORY =============
|
|
0 commit comments