updating keybinds for linux

This commit is contained in:
Matt Nish-Lapidus 2024-10-08 17:06:39 -04:00
parent aedfacb215
commit 3e9fecfb1d
2 changed files with 58 additions and 50 deletions

View file

@ -2,22 +2,22 @@
(map! (:when (modulep! :ui popup) (map! (:when (modulep! :ui popup)
"C-`" #'+popup/toggle "C-`" #'+popup/toggle
"C-~" #'+popup/raise "C-~" #'+popup/raise)
"C-x p" #'+popup/other)
(:when (modulep! :ui workspaces) (:when (modulep! :ui workspaces)
"s-t" #'+workspace/new "C-t" #'+workspace/new
"s-T" #'+workspace/display "C-S-T" #'+workspace/display
"s-1" #'+workspace/switch-to-0 "C-1" #'+workspace/switch-to-0
"s-2" #'+workspace/switch-to-1 "C-2" #'+workspace/switch-to-1
"s-3" #'+workspace/switch-to-2 "C-3" #'+workspace/switch-to-2
"s-4" #'+workspace/switch-to-3 "C-4" #'+workspace/switch-to-3
"s-5" #'+workspace/switch-to-4 "C-5" #'+workspace/switch-to-4
"s-6" #'+workspace/switch-to-5 "C-6" #'+workspace/switch-to-5
"s-7" #'+workspace/switch-to-6 "C-7" #'+workspace/switch-to-6
"s-8" #'+workspace/switch-to-7 "C-8" #'+workspace/switch-to-7
"s-9" #'+workspace/switch-to-8 "C-9" #'+workspace/switch-to-8
"s-0" #'+workspace/switch-to-final)) "C-0" #'+workspace/switch-to-final))
(map! :leader (map! :leader
"`" nil "`" nil
@ -377,28 +377,34 @@
;; some helpful general keys ;; some helpful general keys
(map! "s-c" #'kill-ring-save (map! :map 'override
"s-v" #'yank "C-c" #'kill-ring-save
"s-V" #'consult-yank-from-kill-ring ; paste from previous copdied text "C-v" #'yank
"s-x" #'kill-region "C-S-V" #'consult-yank-from-kill-ring ; paste from previous copdied text
"s-a" #'mark-whole-buffer "C-x" #'kill-region
"s-z" #'undo "C-S-a" #'mark-whole-buffer
"s-Z" #'undo-redo "C-z" #'undo
"s-w" #'kill-buffer "C-S-Z" #'undo-redo
"s-f" #'+default/search-buffer "C-w" #'kill-buffer
"s-g" #'vertico-repeat "C-f" #'+default/search-buffer
"s-s" #'save-buffer "C-g" #'vertico-repeat
"s-;" #'comment-dwim "C-s" #'save-buffer
"M-s-<up>" #'next-window-any-frame "C-;" #'comment-dwim
"M-s-<down>" #'previous-window-any-frame "C-q" #'kill-emacs
"s-M-h" #'windmove-left "C-<left>" #'beginning-of-visual-line
"s-M-j" #'windmove-up "C-<right>" #'end-of-visual-line
"s-M-k" #'windmove-down "C-M-<up>" #'next-window-any-frame
"s-M-l" #'windmove-right "C-H-<down>" #'previous-window-any-frame
"s-<up>" #'beginning-of-buffer "s-<up>" #'backward-paragraph
"s-<down>" #'end-of-buffer "s-<down>" #'forward-paragraph
"s-<return>" #'split-window-vertically "C-M-h" #'windmove-left
"s-S-<return>" #'split-window-horizontally "C-M-j" #'windmove-up
"C-M-k" #'windmove-down
"C-M-l" #'windmove-right
"C-<up>" #'beginning-of-buffer
"C-<down>" #'end-of-buffer
"C-<return>" #'split-window-vertically
"C-S-<return>" #'split-window-horizontally
"C-M-S-s-<mouse-1>" #'+fold/toggle) "C-M-S-s-<mouse-1>" #'+fold/toggle)
(map! :localleader (map! :localleader
@ -412,12 +418,12 @@
"M-}" #'sp-backward-barf-sexp "M-}" #'sp-backward-barf-sexp
"M-)" #'sp-split-sexp "M-)" #'sp-split-sexp
"M-(" #'sp-splice-sexp "M-(" #'sp-splice-sexp
"s-(" #'sp-wrap-round "C-(" #'sp-wrap-round
"s-)" #'sp-unwrap-sexp "C-)" #'sp-unwrap-sexp
"s-[" #'sp-wrap-square "C-[" #'sp-wrap-square
"s-]" #'sp-unwrap-sexp "C-]" #'sp-unwrap-sexp
"s-{" #'sp-wrap-curly "C-{" #'sp-wrap-curly
"s-}" #'sp-unwrap-sexp) "C-}" #'sp-unwrap-sexp)
;; platform io local leader bindings ;; platform io local leader bindings
(map! :map platformio-mode-map (map! :map platformio-mode-map
@ -457,8 +463,12 @@
"H" #'sclang-open-help-gui "H" #'sclang-open-help-gui
"s" #'sclang-start) "s" #'sclang-start)
(map! :map centaur-tabs-mode-map
"C-M-<right>" 'centaur-tabs-forward
"C-M-<left>" 'centaur-tabs-backward)
(map! :map web-mode-map (map! :map web-mode-map
"s-<" #'web-mode-element-wrap) "C-S-<" #'web-mode-element-wrap)
(map! :map chezmoi-mode-map (map! :map chezmoi-mode-map
:localleader :localleader

View file

@ -161,10 +161,8 @@
;; fix centaur tabs to show at the right times and add my muscle memory keybind ;; fix centaur tabs to show at the right times and add my muscle memory keybind
(after! centaur-tabs (after! centaur-tabs
(setq centaur-tabs-set-bar 'right) (setq centaur-tabs-set-bar 'right)
(setq centaur-tabs-cycle-scope 'tabs) (setq centaur-tabs-cycle-scope 'tabs))
(map! :map centaur-tabs-mode-map
"s-M-<right>" 'centaur-tabs-forward
"s-M-<left>" 'centaur-tabs-backward))
;; use kitty for terminal-here ;; use kitty for terminal-here
;; (setq terminal-here-mac-terminal-command '("kitty" "@" "launch" "--type=tab")) ;; (setq terminal-here-mac-terminal-command '("kitty" "@" "launch" "--type=tab"))
@ -204,9 +202,9 @@
(lambda (path) (lambda (path)
(load (concat path "res/emacs/cl-patterns-helpers") nil nil nil t) (load (concat path "res/emacs/cl-patterns-helpers") nil nil nil t)
(load (concat path "res/emacs/cl-patterns-skeletons") nil nil nil t))) (load (concat path "res/emacs/cl-patterns-skeletons") nil nil nil t)))
(define-key sly-mode-map (kbd "C-c p") 'cl-patterns-play-or-end-context-or-select-pdef) ;; (define-key sly-mode-map (kbd "C-c p") 'cl-patterns-play-or-end-context-or-select-pdef)
(define-key sly-mode-map (kbd "C-c P") 'cl-patterns-play-or-stop-context-or-select-pdef) ;; (define-key sly-mode-map (kbd "C-c P") 'cl-patterns-play-or-stop-context-or-select-pdef)
(define-key sly-mode-map (kbd "C-c s") 'cl-patterns-stop-all) ;; (define-key sly-mode-map (kbd "C-c s") 'cl-patterns-stop-all)
(define-key sly-doc-map (kbd "s") 'cl-patterns-supercollider-documentation) (define-key sly-doc-map (kbd "s") 'cl-patterns-supercollider-documentation)
(add-hook! 'sly-connected-hook 'cl-patterns-helpers-load))) (add-hook! 'sly-connected-hook 'cl-patterns-helpers-load)))