Add some more ace-link keybindings
This commit is contained in:
parent
76e4f12956
commit
e074e76f09
2 changed files with 11 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; 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)
|
;; 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
|
;; 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 'electric-indent-local-mode-hook #'oni-core--switch-newline-keys)
|
||||||
(add-hook 'prog-mode-hook 'goto-address-prog-mode)
|
(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-M-SPC") 'er/expand-region)
|
||||||
(global-set-key (kbd "C-S-b") 'windmove-left)
|
(global-set-key (kbd "C-S-b") 'windmove-left)
|
||||||
(global-set-key (kbd "C-S-f") 'windmove-right)
|
(global-set-key (kbd "C-S-f") 'windmove-right)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2023.0918.233520
|
;; Version: 2023.1002.222539
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table ob-async)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table ob-async)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -774,6 +774,9 @@ After running it once remove it from `org-capture-after-finalize-hook'."
|
||||||
|
|
||||||
(define-key org-mode-map (kbd "C-c C-S-w") #'oni-org-refile-to-top)
|
(define-key org-mode-map (kbd "C-c C-S-w") #'oni-org-refile-to-top)
|
||||||
|
|
||||||
|
(with-eval-after-load 'ace-link
|
||||||
|
(define-key org-mode-map (kbd "C-c C-o") 'ace-link-org))
|
||||||
|
|
||||||
;;; Export
|
;;; Export
|
||||||
(require 'ox-html)
|
(require 'ox-html)
|
||||||
(require 'nxml-mode)
|
(require 'nxml-mode)
|
||||||
|
|
Loading…
Reference in a new issue