diff options
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) |