config/doom: fix bindings

This commit is contained in:
xerus2000 2021-04-02 21:01:26 +02:00
parent e4f422899e
commit 9188a80fe7
3 changed files with 16 additions and 8 deletions

View File

@ -28,6 +28,8 @@
doom-variable-pitch-font (font-spec :family "sans" :size 24)) doom-variable-pitch-font (font-spec :family "sans" :size 24))
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(setq evil-respect-visual-line-mode nil)
(add-hook 'visual-line-mode-hook (lambda () (setq line-move-visual nil)))
;;;; BINDINGS ;;;; BINDINGS
@ -119,7 +121,6 @@
;; Treat clipboard input as UTF-8 string first; compound text next, etc. ;; Treat clipboard input as UTF-8 string first; compound text next, etc.
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
;;;; ORG ;;;; ORG
(after! org (after! org
(setq org-agenda-files (setq org-agenda-files
@ -135,14 +136,17 @@
(defun org-timestamp-up-week () (defun org-timestamp-up-week ()
(interactive) (interactive)
(let ((setq current-prefix-arg '(7))) (call-interactively 'org-timestamp-up-day)) (let ((current-prefix-arg '(7))) (call-interactively 'org-timestamp-up-day))
) )
(map! :map org-mode-map (map! :map org-mode-map
:localleader :localleader
"j" 'org-insert-heading "j" 'org-insert-heading
"t" 'org-todo-or-insert "t" 'org-todo-or-insert
"d=" 'org-timestamp-up-week) "d=" 'org-timestamp-up-week
"rt" 'org-todo-region
"ra" 'org-change-tag-in-region
)
(define-key org-mode-map (kbd "C-c .") 'org-time-stamp-inactive) (define-key org-mode-map (kbd "C-c .") 'org-time-stamp-inactive)
(define-key org-mode-map (kbd "M-C-+") 'org-timestamp-up) (define-key org-mode-map (kbd "M-C-+") 'org-timestamp-up)
@ -252,6 +256,10 @@
;; bind evil-jump-out-args ;; bind evil-jump-out-args
(define-key evil-normal-state-map "K" 'evil-jump-out-args) (define-key evil-normal-state-map "K" 'evil-jump-out-args)
) )
; (use-package evil-better-visual-line
; :ensure t
; :config
; (evil-better-visual-line-on))
(use-package! direnv ; nix-shell stuffs (use-package! direnv ; nix-shell stuffs
:config :config

View File

@ -49,13 +49,13 @@
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t) ;(unpin! t)
(package! evil-args) ; motions in args
(package! evil-replace-with-register) ; grrrrr
(package! evil-better-visual-line)
(package! annotate) ; Annotations (package! annotate) ; Annotations
(package! visual-fill-column) ; Soft line wrapping at character count (package! visual-fill-column) ; Soft line wrapping at character count
(package! togetherly) ; Collaborative editing (package! togetherly) ; Collaborative editing
;(package! ox-reveal) ; Presentations
(package! evil-args) ; motions in args
(package! evil-replace-with-register) ; grrrrr
(package! direnv) ; nix-shell stuffs (package! direnv) ; nix-shell stuffs
(package! plantuml-mode) ; Diagrams (package! plantuml-mode) ; Diagrams

View File

@ -3,4 +3,4 @@
# key: bv # key: bv
# binding: C-c C-c b # binding: C-c C-c b
# -- # --
^{[[https://www.bibleserver.com/SLT.KJV/$1$2[$2]}$0 {[[https://www.bibleserver.com/SLT.KJV/$1$2[$2]}$0