add org-roam
This commit is contained in:
		
							parent
							
								
									3b94363609
								
							
						
					
					
						commit
						cc34efbda7
					
				
							
								
								
									
										61
									
								
								.emacs
								
								
								
								
							
							
						
						
									
										61
									
								
								.emacs
								
								
								
								
							| 
						 | 
					@ -34,6 +34,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(straight-use-package 'use-package)
 | 
					(straight-use-package 'use-package)
 | 
				
			||||||
(setq straight-use-package-by-default t)
 | 
					(setq straight-use-package-by-default t)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(straight-use-package 'org)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(global-set-key [f11] 'toggle-frame-fullscreen)
 | 
					(global-set-key [f11] 'toggle-frame-fullscreen)
 | 
				
			||||||
(global-set-key (kbd "C-s") 'ripgrep-regexp)
 | 
					(global-set-key (kbd "C-s") 'ripgrep-regexp)
 | 
				
			||||||
(global-set-key (kbd "C-,") 'move-to-previous-window)
 | 
					(global-set-key (kbd "C-,") 'move-to-previous-window)
 | 
				
			||||||
| 
						 | 
					@ -146,6 +149,13 @@ and position the cursor inside the comment. Additionally insert the word under t
 | 
				
			||||||
      (insert " */")
 | 
					      (insert " */")
 | 
				
			||||||
      (end-of-line 0))))
 | 
					      (end-of-line 0))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(defun markdown-convert-buffer-to-org ()
 | 
				
			||||||
 | 
					  "Convert the current buffer's content from markdown to orgmode format and save it with the current buffer's file name but with .org extension."
 | 
				
			||||||
 | 
					  (interactive)
 | 
				
			||||||
 | 
					  (shell-command-on-region (point-min) (point-max)
 | 
				
			||||||
 | 
					                           (format "pandoc -f markdown -t org -o %s"
 | 
				
			||||||
 | 
					                                   (concat (file-name-sans-extension (buffer-file-name)) ".org"))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(use-package evil
 | 
					(use-package evil
 | 
				
			||||||
  :ensure t
 | 
					  :ensure t
 | 
				
			||||||
  :init
 | 
					  :init
 | 
				
			||||||
| 
						 | 
					@ -516,6 +526,35 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
 | 
				
			||||||
			     (buffer-face-mode)))
 | 
								     (buffer-face-mode)))
 | 
				
			||||||
  (add-hook 'org-agenda-finalize-hook #'org-modern-agenda))
 | 
					  (add-hook 'org-agenda-finalize-hook #'org-modern-agenda))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(use-package org-roam
 | 
				
			||||||
 | 
					  :ensure t
 | 
				
			||||||
 | 
					  :init
 | 
				
			||||||
 | 
					  (setq org-roam-v2-ack t)
 | 
				
			||||||
 | 
					  :custom
 | 
				
			||||||
 | 
					  (org-roam-directory "~/src/digital-brain")
 | 
				
			||||||
 | 
					  (org-roam-completion-everywhere t)
 | 
				
			||||||
 | 
					  :bind (("C-c n l" . org-roam-buffer-toggle)
 | 
				
			||||||
 | 
					         ("C-c n f" . org-roam-node-find)
 | 
				
			||||||
 | 
					         ("C-c n i" . org-roam-node-insert)
 | 
				
			||||||
 | 
					         :map org-mode-map
 | 
				
			||||||
 | 
					         ("C-M-i"    . completion-at-point))
 | 
				
			||||||
 | 
					  :config
 | 
				
			||||||
 | 
					  (org-roam-setup))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(use-package org-roam-ui
 | 
				
			||||||
 | 
					  :straight
 | 
				
			||||||
 | 
					    (:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
 | 
				
			||||||
 | 
					    :after org-roam
 | 
				
			||||||
 | 
					;;         normally we'd recommend hooking orui after org-roam, but since org-roam does not have
 | 
				
			||||||
 | 
					;;         a hookable mode anymore, you're advised to pick something yourself
 | 
				
			||||||
 | 
					;;         if you don't care about startup time, use
 | 
				
			||||||
 | 
					;;  :hook (after-init . org-roam-ui-mode)
 | 
				
			||||||
 | 
					    :config
 | 
				
			||||||
 | 
					    (setq org-roam-ui-sync-theme t
 | 
				
			||||||
 | 
					          org-roam-ui-follow t
 | 
				
			||||||
 | 
					          org-roam-ui-update-on-save t
 | 
				
			||||||
 | 
					          org-roam-ui-open-on-start t))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(use-package restclient)
 | 
					(use-package restclient)
 | 
				
			||||||
(use-package markdown-mode
 | 
					(use-package markdown-mode
 | 
				
			||||||
  :ensure t
 | 
					  :ensure t
 | 
				
			||||||
| 
						 | 
					@ -540,12 +579,12 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
 | 
				
			||||||
         (typescript-mode . tide-hl-identifier-mode)
 | 
					         (typescript-mode . tide-hl-identifier-mode)
 | 
				
			||||||
         (before-save . tide-format-before-save)))
 | 
					         (before-save . tide-format-before-save)))
 | 
				
			||||||
(use-package uxntal-mode)
 | 
					(use-package uxntal-mode)
 | 
				
			||||||
;(use-package hy-mode)
 | 
										;(use-package hy-mode)
 | 
				
			||||||
(use-package lua-mode)
 | 
					(use-package lua-mode)
 | 
				
			||||||
;(use-package elm-mode)
 | 
										;(use-package elm-mode)
 | 
				
			||||||
(use-package go-mode)
 | 
					(use-package go-mode)
 | 
				
			||||||
;(use-package rust-mode)
 | 
										;(use-package rust-mode)
 | 
				
			||||||
;(use-package cargo)
 | 
										;(use-package cargo)
 | 
				
			||||||
(use-package ccls
 | 
					(use-package ccls
 | 
				
			||||||
  :ensure t
 | 
					  :ensure t
 | 
				
			||||||
  :init (setq ccls-executable "/usr/bin/ccls")
 | 
					  :init (setq ccls-executable "/usr/bin/ccls")
 | 
				
			||||||
| 
						 | 
					@ -568,19 +607,19 @@ Other buffer group by `centaur-tabs-get-group-name' with project name."
 | 
				
			||||||
  (setq lsp-keymap-prefix "C-c l")
 | 
					  (setq lsp-keymap-prefix "C-c l")
 | 
				
			||||||
  (add-to-list 'exec-path "/home/zongor/lib/elixir-ls")
 | 
					  (add-to-list 'exec-path "/home/zongor/lib/elixir-ls")
 | 
				
			||||||
  :hook
 | 
					  :hook
 | 
				
			||||||
  ((elixir-mode. lsp)
 | 
					  ((elixir-mode . lsp)
 | 
				
			||||||
  ;(rust-mode) . lsp)
 | 
										;(rust-mode . lsp)
 | 
				
			||||||
  (go-mode) . lsp))
 | 
					   (go-mode . lsp)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(use-package lsp-ui
 | 
					(use-package lsp-ui
 | 
				
			||||||
  :hook (lsp-mode . lsp-ui-mode)
 | 
					  :hook (lsp-mode . lsp-ui-mode)
 | 
				
			||||||
  :config
 | 
					  :config
 | 
				
			||||||
  (setq lsp-ui-doc-enable t))
 | 
					  (setq lsp-ui-doc-enable t))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;(use-package sly
 | 
										;(use-package sly
 | 
				
			||||||
;  :ensure t
 | 
										;  :ensure t
 | 
				
			||||||
;  :config
 | 
										;  :config
 | 
				
			||||||
;  (setq inferior-lisp-program "sbcl"))
 | 
										;  (setq inferior-lisp-program "sbcl"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(use-package vterm
 | 
					(use-package vterm
 | 
				
			||||||
  :ensure t)
 | 
					  :ensure t)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue