diff options
author | 2023-10-02 22:26:59 -0700 | |
---|---|---|
committer | 2023-10-02 22:26:59 -0700 | |
commit | e074e76f09601938caa0ce74ab1c8ebb29fa0b6c (patch) | |
tree | 28d2e7440ac136180d67a072bdafffb6a1849f86 /oni-core.el | |
parent | 76e4f129563be48048a5f2142924aa3cebee6bb2 (diff) | |
download | emacs-config-e074e76f09601938caa0ce74ab1c8ebb29fa0b6c.tar.gz emacs-config-e074e76f09601938caa0ce74ab1c8ebb29fa0b6c.zip |
Add some more ace-link keybindings
Diffstat (limited to 'oni-core.el')
-rw-r--r-- | oni-core.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-core.el b/oni-core.el index bf4ce23..d57fac6 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2023.0911.211246 +;; Version: 2023.1002.222641 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame) ;; This program is free software; you can redistribute it and/or modify @@ -195,6 +195,12 @@ _s_: String list" (add-hook 'electric-indent-local-mode-hook #'oni-core--switch-newline-keys) (add-hook 'prog-mode-hook 'goto-address-prog-mode) +(defun oni-core-set-ace-link-goto-addr-binding () + "Set a key locally to open links using ‘ace-link’." + (local-set-key (kbd "C-c C-o") 'ace-link-addr)) + +(add-hook 'goto-address-prog-mode-hook #'oni-core-set-ace-link-goto-addr-binding) + (global-set-key (kbd "C-M-SPC") 'er/expand-region) (global-set-key (kbd "C-S-b") 'windmove-left) (global-set-key (kbd "C-S-f") 'windmove-right) |