diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2024-04-27 16:46:22 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2024-04-27 16:46:22 -0700 |
| commit | e950b705540c5371ef1d7efd6bce9d8e36d62f3f (patch) | |
| tree | 1bf043689c8b78c188636e9cc75c7ecbd88f1805 /emacs/personal-lisp/custom-binds.el | |
| parent | e421309a69747803731c15e913d1ff8a37a0cc69 (diff) | |
emacs config cleanup
Diffstat (limited to 'emacs/personal-lisp/custom-binds.el')
| -rw-r--r-- | emacs/personal-lisp/custom-binds.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/emacs/personal-lisp/custom-binds.el b/emacs/personal-lisp/custom-binds.el new file mode 100644 index 0000000..92dcc69 --- /dev/null +++ b/emacs/personal-lisp/custom-binds.el @@ -0,0 +1,20 @@ +;; keyboard binds (mostly global) +(global-set-key (kbd "C-x C-C") 'save-buffers-kill-terminal) +(global-set-key (kbd "C-x C-c") 'close-or-kill) +(global-set-key (kbd "M-w") 'copy-region-as-kill) ;;make copying not flash cursor +(global-set-key (kbd "M-(") 'wrap-region-paren) +(global-set-key (kbd "M-z") 'zap-whitespace) +(global-set-key (kbd "C-M-z") 'wrap-sexp) +(require 'buffer-move) +(global-set-key (kbd "C-x -") 'buf-move-right) +(global-set-key (kbd "M-o") 'other-window) +(global-set-key (kbd "M-c") 'calc) +(global-set-key (kbd "M-k") 'kill-current-buffer) +(global-set-key (kbd "M-K") 'kill-buffer-and-window) +(global-set-key (kbd "M-U") 'scroll-lock-mode) +(global-set-key (kbd "M-Q") 'auto-fill-mode) +(require 'dired) +(define-key dired-mode-map (kbd "C-o") 'dired-display-file) +;; (add-hook 'dired-mode-hook (lambda () +;; (define-key evil-normal-state-local-map (kbd "C-o") +;; 'dired-display-file))) |
