Update emacs configs with more org-roam keybindings
This commit is contained in:
parent
46c798a58c
commit
efb24cd8cb
@ -5,7 +5,7 @@
|
|||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(helm-minibuffer-history-key "M-p")
|
'(helm-minibuffer-history-key "M-p")
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(helm-rg helm-projectile yasnippet-snippets which-key vue-mode projectile powerline-evil paredit org-super-agenda org-roam org-modern magit lsp-ui lsp-pyright kaolin-themes helm-xref golint flycheck flx evil-collection doom-themes dap-mode corfu company-go company-fuzzy comment-tags beacon all-the-icons)))
|
'(autopair yasnippet-snippets which-key vue-mode powerline-evil paredit org-super-agenda org-roam org-modern magit lsp-ui lsp-pyright kaolin-themes helm-xref helm-rg helm-projectile golint flycheck flx evil-collection doom-themes dap-mode corfu company-go company-fuzzy comment-tags beacon all-the-icons)))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
(setq default-frame-alist '((font . "CartographCF Nerd Font DemiBold 15")))
|
(setq default-frame-alist '((font . "CartographCF Nerd Font DemiBold 16") (foreground-color . "#FFF")))
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
@ -85,12 +85,11 @@
|
|||||||
:init
|
:init
|
||||||
(setq evil-want-C-u-scroll t)
|
(setq evil-want-C-u-scroll t)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1)
|
||||||
|
(with-eval-after-load 'evil-maps
|
||||||
(use-package evil-collection
|
(define-key evil-motion-state-map (kbd "SPC") nil)
|
||||||
:ensure t
|
(define-key evil-motion-state-map (kbd "RET") nil)
|
||||||
:config
|
(define-key evil-motion-state-map (kbd "TAB") nil)))
|
||||||
(evil-collection-init))
|
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:ensure t)
|
:ensure t)
|
||||||
@ -101,9 +100,14 @@
|
|||||||
(setq org-roam-v2-ack t)
|
(setq org-roam-v2-ack t)
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory "~/org-roam")
|
(org-roam-directory "~/org-roam")
|
||||||
|
(org-roam-completion-everywhere t)
|
||||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||||
("C-c n f" . org-roam-node-find)
|
("C-c n f" . org-roam-node-find)
|
||||||
("C-c n i" . org-roam-node-insert))
|
("C-c n i" . org-roam-node-insert)
|
||||||
|
("C-c n c" . org-id-get-create)
|
||||||
|
("C-c n n" . org-roam-alias-add)
|
||||||
|
:map org-mode-map
|
||||||
|
("C-M-i" . completion-at-point))
|
||||||
:config
|
:config
|
||||||
(org-roam-setup))
|
(org-roam-setup))
|
||||||
|
|
||||||
@ -146,30 +150,32 @@
|
|||||||
;; Wrap the lines in org mode so that things are easier to read
|
;; Wrap the lines in org mode so that things are easier to read
|
||||||
(add-hook 'org-mode-hook 'visual-line-mode)
|
(add-hook 'org-mode-hook 'visual-line-mode)
|
||||||
|
|
||||||
(let* ((variable-tuple
|
(when window-system
|
||||||
(cond ((x-list-fonts "CartographCF Nerd Font") '(:font "CartographCF Nerd Font"))
|
(let* ((variable-tuple
|
||||||
((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro"))
|
(cond ((x-list-fonts "CartographCF Nerd Font") '(:font "CartographCF Nerd Font" :foreground "#FFF"))
|
||||||
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande"))
|
((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro"))
|
||||||
((x-list-fonts "Verdana") '(:font "Verdana"))
|
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande"))
|
||||||
((x-family-fonts "Sans Serif") '(:family "Sans Serif"))
|
((x-list-fonts "Verdana") '(:font "Verdana"))
|
||||||
(nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro."))))
|
((x-list-fonts "Sans Serif") '(:family "Sans Serif"))
|
||||||
(base-font-color (face-foreground 'default nil 'default))
|
(nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro."))))
|
||||||
(headline `(:inherit default :weight bold :foreground ,base-font-color)))
|
(base-font-color (face-foreground 'default nil 'default))
|
||||||
|
(headline `(:inherit default :weight bold :foreground ,base-font-color)))
|
||||||
|
(custom-theme-set-faces
|
||||||
|
'user
|
||||||
|
`(org-level-8 ((t (,@headline ,@variable-tuple))))
|
||||||
|
`(org-level-7 ((t (,@headline ,@variable-tuple))))
|
||||||
|
`(org-level-6 ((t (,@headline ,@variable-tuple))))
|
||||||
|
`(org-level-5 ((t (,@headline ,@variable-tuple))))
|
||||||
|
`(org-level-4 ((t (,@headline ,@variable-tuple :height 1.2))))
|
||||||
|
`(org-level-3 ((t (,@headline ,@variable-tuple :height 1.3))))
|
||||||
|
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.4))))
|
||||||
|
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.5))))
|
||||||
|
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.7 :underline nil))))))
|
||||||
|
)
|
||||||
|
|
||||||
(custom-theme-set-faces
|
|
||||||
'user
|
|
||||||
`(org-level-8 ((t (,@headline ,@variable-tuple))))
|
|
||||||
`(org-level-7 ((t (,@headline ,@variable-tuple))))
|
|
||||||
`(org-level-6 ((t (,@headline ,@variable-tuple))))
|
|
||||||
`(org-level-5 ((t (,@headline ,@variable-tuple))))
|
|
||||||
`(org-level-4 ((t (,@headline ,@variable-tuple :height 1.2))))
|
|
||||||
`(org-level-3 ((t (,@headline ,@variable-tuple :height 1.3))))
|
|
||||||
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.4))))
|
|
||||||
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.6))))
|
|
||||||
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.7 :underline nil))))))
|
|
||||||
|
|
||||||
(use-package org-super-agenda
|
(use-package org-super-agenda
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(use-package comment-tags
|
(use-package comment-tags
|
||||||
:ensure t)
|
:ensure t)
|
||||||
@ -316,37 +322,42 @@
|
|||||||
(lambda () (interactive) (dired default-directory)))
|
(lambda () (interactive) (dired default-directory)))
|
||||||
(evil-define-key 'visual 'global (kbd "J") 'evil-collection-unimpaired-move-text-down)
|
(evil-define-key 'visual 'global (kbd "J") 'evil-collection-unimpaired-move-text-down)
|
||||||
(evil-define-key 'visual 'global (kbd "K") 'evil-collection-unimpaired-move-text-up)
|
(evil-define-key 'visual 'global (kbd "K") 'evil-collection-unimpaired-move-text-up)
|
||||||
|
;; helm
|
||||||
|
(use-package helm
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
;; helm
|
(helm-mode 1)
|
||||||
(use-package helm
|
(global-set-key (kbd "C-x b") 'helm-buffers-list)
|
||||||
:ensure t
|
(global-set-key (kbd "C-x r b") 'helm-boormarks)
|
||||||
:config
|
(global-set-key (kbd "C-x C-f") 'helm-find-files)
|
||||||
(helm-mode 1)
|
(global-set-key (kbd "M-c") 'helm-calcul-expression)
|
||||||
(global-set-key (kbd "C-x b") 'helm-buffers-list)
|
(global-set-key (kbd "C-x b") 'helm-buffers-list)
|
||||||
(global-set-key (kbd "C-x r b") 'helm-boormarks)
|
(global-set-key (kbd "C-s") 'helm-occur)
|
||||||
(global-set-key (kbd "C-x C-f") 'helm-find-files)
|
(global-set-key (kbd "M-x") 'helm-M-x)
|
||||||
(global-set-key (kbd "M-c") 'helm-calcul-expression)
|
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
|
||||||
(global-set-key (kbd "C-x b") 'helm-buffers-list)
|
(global-set-key (kbd "C-h a") 'helm-apropos)
|
||||||
(global-set-key (kbd "C-s") 'helm-occur)
|
(setq helm-split-window-in-side-p t
|
||||||
(global-set-key (kbd "M-x") 'helm-M-x)
|
helm-move-to-line-cycle-in-source t))
|
||||||
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
|
|
||||||
(global-set-key (kbd "C-h a") 'helm-apropos)
|
|
||||||
(setq helm-split-window-in-side-p t
|
|
||||||
helm-move-to-line-cycle-in-source t))
|
|
||||||
|
|
||||||
(defun my-switch-to-fzf (arg)
|
|
||||||
(interactive "p")
|
|
||||||
(let ((helm-current-dir (file-name-directory (helm-get-selection))))
|
|
||||||
(run-at-time nil nil
|
|
||||||
(lambda (dir)
|
|
||||||
(fzf/start dir)) helm-current-dir)
|
|
||||||
(helm-keyboard-quit)))
|
|
||||||
|
|
||||||
(use-package helm-projectile
|
(use-package helm-projectile
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(evil-define-key 'normal 'global (kbd "<leader>sf")
|
(evil-define-key 'normal 'global (kbd "<leader>sf")
|
||||||
(lambda () (interactive) (helm-projectile)))
|
(lambda () (interactive) (helm-projectile)))
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>mc")
|
||||||
|
(lambda () (interactive) (find-file user-init-file)))
|
||||||
|
|
||||||
|
(electric-pair-mode 1)
|
||||||
|
|
||||||
|
(use-package eaf
|
||||||
|
:load-path "~/.emacs.d/site-lisp/emacs-application-framework"
|
||||||
|
:custom
|
||||||
|
; See https://github.com/emacs-eaf/emacs-application-framework/wiki/Customization
|
||||||
|
(eaf-browser-continue-where-left-off t)
|
||||||
|
(eaf-browser-enable-adblocker t)
|
||||||
|
(browse-url-browser-function 'eaf-open-browser)
|
||||||
|
:config
|
||||||
|
(defalias 'browse-web #'eaf-open-browser))
|
||||||
|
|
||||||
|
(require 'eaf-browser)
|
||||||
|
(require 'eaf-pdf-viewer)
|
||||||
|
Loading…
Reference in New Issue
Block a user