mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-22 08:21:27 +00:00
some emacs changes
This commit is contained in:
parent
16c97fe1f8
commit
07d4edc7de
10
home/pure_emacs/.emacs.d/bookmarks
Normal file
10
home/pure_emacs/.emacs.d/bookmarks
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
;;;; Emacs Bookmark Format Version 1 ;;;; -*- coding: utf-8-emacs -*-
|
||||||
|
;;; This format is meant to be slightly human-readable;
|
||||||
|
;;; nevertheless, you probably don't want to edit it.
|
||||||
|
;;; -*- End Of Bookmark File Format Version Stamp -*-
|
||||||
|
(("org-capture-last-stored"
|
||||||
|
(filename . "~/org-notes/20210905123441-test2.org")
|
||||||
|
(front-context-string . "\n[[id:ee52b0fb-8")
|
||||||
|
(rear-context-string . "\n#+title: test2\n")
|
||||||
|
(position . 83))
|
||||||
|
)
|
|
@ -15,22 +15,23 @@
|
||||||
|
|
||||||
* Packages
|
* Packages
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(require 'package)
|
(setq max-lisp-eval-depth 10000)
|
||||||
(add-to-list 'package-archives
|
(require 'package)
|
||||||
'("melpa" . "http://melpa.org/packages/"))
|
(add-to-list 'package-archives
|
||||||
|
'("melpa" . "http://stable.melpa.org/packages/"))
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(unless package-archive-contents
|
(unless package-archive-contents
|
||||||
(package-refresh-contents))
|
(package-refresh-contents))
|
||||||
|
|
||||||
|
|
||||||
(defvar package-list
|
(defvar package-list
|
||||||
'(use-package doom-themes))
|
'(use-package doom-themes))
|
||||||
|
|
||||||
(dolist (p package-list)
|
(dolist (p package-list)
|
||||||
(when (not (package-installed-p p))
|
(when (not (package-installed-p p))
|
||||||
(package-install p)))
|
(package-install p)))
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -356,7 +357,7 @@
|
||||||
(treemacs-create-icon :file "zip.png" :fallback "🗃️" :extensions ("zip" "tar" "tar.xz" "xz" "xfv" "7z"))
|
(treemacs-create-icon :file "zip.png" :fallback "🗃️" :extensions ("zip" "tar" "tar.xz" "xz" "xfv" "7z"))
|
||||||
(treemacs-create-icon :file "todo.png" :fallback "🗃️" :extensions ("TODO" "todo" "Tasks" ))
|
(treemacs-create-icon :file "todo.png" :fallback "🗃️" :extensions ("TODO" "todo" "Tasks" ))
|
||||||
(treemacs-create-icon :file "webassembly" :fallback "🗃️" :extensions ("wasm" "webasm" "webassembly"))
|
(treemacs-create-icon :file "webassembly" :fallback "🗃️" :extensions ("wasm" "webasm" "webassembly"))
|
||||||
(treemacs-create-icon :file "python" :fallback "🗃️" :extensions ("py" "python"))))
|
(treemacs-create-icon :file "python.png" :fallback "🗃️" :extensions ("py" "python"))))
|
||||||
|
|
||||||
(treemacs-load-theme 'Material)
|
(treemacs-load-theme 'Material)
|
||||||
|
|
||||||
|
@ -475,7 +476,7 @@
|
||||||
"f v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" ))
|
"f v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" ))
|
||||||
"f d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" ))
|
"f d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" ))
|
||||||
"f a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
|
"f a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
|
||||||
"f b" '(lambda() (interactive) (find-file "~/Notes") :which-key "my brain")
|
"f b" '(lambda() (interactive) (find-file "~/org-notes") :which-key "my brain")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -554,6 +555,7 @@
|
||||||
("DONE"." D ")
|
("DONE"." D ")
|
||||||
("NEXT"." N ")
|
("NEXT"." N ")
|
||||||
("IDEA"." 💡 ")
|
("IDEA"." 💡 ")
|
||||||
|
("READ"." 🔖 ")
|
||||||
("DREAM"." ✨ ")
|
("DREAM"." ✨ ")
|
||||||
(":LOGBOOK:"." LOG ")
|
(":LOGBOOK:"." LOG ")
|
||||||
))
|
))
|
||||||
|
@ -632,10 +634,10 @@
|
||||||
(use-package org
|
(use-package org
|
||||||
:hook ((org-mode . my/org-mode-setup)
|
:hook ((org-mode . my/org-mode-setup)
|
||||||
(org-mode . variable-pitch-mode)
|
(org-mode . variable-pitch-mode)
|
||||||
(org-mode . org-inddent-mode)
|
(org-mode . org-indent-mode)
|
||||||
(org-mode . prettify-symbols-mode)
|
(org-mode . prettify-symbols-mode)
|
||||||
)
|
)
|
||||||
:config (setq org-agenda-files `("~/Nextcloud2/Notes/Ideas💡.org" "~/Nextcloud2/Notes/Lists📜.org" "~/Nextcloud2/Notes/Projects💻.org" "~/Nextcloud2/Notes/Tasks🧾.org"))
|
:config (setq org-agenda-files `("~/org-notes"))
|
||||||
(display-line-numbers-mode 0)
|
(display-line-numbers-mode 0)
|
||||||
(org-bullets-mode t)
|
(org-bullets-mode t)
|
||||||
(org-indent-mode t)
|
(org-indent-mode t)
|
||||||
|
@ -649,6 +651,7 @@
|
||||||
("STARTED" . "yellow")
|
("STARTED" . "yellow")
|
||||||
("DREAM" . "pink")
|
("DREAM" . "pink")
|
||||||
("IDEA" . "gold")
|
("IDEA" . "gold")
|
||||||
|
("READ" . "violet")
|
||||||
("ARTICLE" . "lightblue")
|
("ARTICLE" . "lightblue")
|
||||||
("CANCELED" .
|
("CANCELED" .
|
||||||
(:foreground "blue"
|
(:foreground "blue"
|
||||||
|
@ -657,7 +660,7 @@
|
||||||
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||||
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)"
|
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)"
|
||||||
"WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")
|
"WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")
|
||||||
(sequence "IDEA(i)" "DREAM(d)" "ARTICLE(a)" "|" "DONE(d!)")))
|
(sequence "IDEA(i)" "DREAM(d)" "READ(r)" "ARTICLE(a)" "|" "DONE(d!)")))
|
||||||
|
|
||||||
(setq org-agenda-custom-commands '(("d" "Dashboard" ((agenda "" ((org-deadline-warning-days 7)))
|
(setq org-agenda-custom-commands '(("d" "Dashboard" ((agenda "" ((org-deadline-warning-days 7)))
|
||||||
(todo "NEXT" ((org-agenda-overriding-header
|
(todo "NEXT" ((org-agenda-overriding-header
|
||||||
|
@ -667,6 +670,8 @@
|
||||||
"Active Projects")))))
|
"Active Projects")))))
|
||||||
("n" "Next Tasks" ((todo "NEXT" ((org-agenda-overriding-header
|
("n" "Next Tasks" ((todo "NEXT" ((org-agenda-overriding-header
|
||||||
"Next Tasks")))))
|
"Next Tasks")))))
|
||||||
|
("r" "Read pages" ((todo "READ" ((org-agenda-overriding-header
|
||||||
|
"To read")))))
|
||||||
("i" "Ideas" ((todo "IDEA" ((org-agenda-overriding-header
|
("i" "Ideas" ((todo "IDEA" ((org-agenda-overriding-header
|
||||||
"Ideas "))
|
"Ideas "))
|
||||||
)
|
)
|
||||||
|
@ -779,53 +784,57 @@
|
||||||
|
|
||||||
** Org roam
|
** Org roam
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org-roam-server)
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook
|
:hook
|
||||||
(after-init . org-roam-mode)
|
(after-init . org-roam-mode)
|
||||||
:general (general-nmap
|
:general (general-nmap
|
||||||
:prefix "SPC r"
|
:prefix "SPC r"
|
||||||
;; Org-roam keymap
|
;; Org-roam keymap
|
||||||
"d" '(org-roam-dailies-find-today :which-key "roam today")
|
"d" '(org-roam-dailies-find-today :which-key "roam today")
|
||||||
"t a" '(org-roam-tag-add :which-key "roam add tag")
|
"t a" '(org-roam-tag-add :which-key "roam add tag")
|
||||||
"t d" '(org-roam-tag-delete :which-key "roam delete tag")
|
"t d" '(org-roam-tag-delete :which-key "roam delete tag")
|
||||||
"a a" '(org-roam-alias-add :which-key "roam add alias")
|
"a a" '(org-roam-alias-add :which-key "roam add alias")
|
||||||
"f f" '(org-roam-find-file :which-key "roam findgfile ")
|
"f f" '(org-roam-find-file :which-key "roam findgfile ")
|
||||||
"g" '(org-roam-graph-show :which-key "roam graph ")
|
"g" '(org-roam-graph-show :which-key "roam graph ")
|
||||||
"b b" '(org-roam-buffer-toggle-display :which-key "roam buffer toggle ")
|
"b b" '(org-roam-buffer-toggle-display :which-key "roam buffer toggle ")
|
||||||
"b s" '(org-roam-buffer-activate :which-key "roam buffer show ")
|
"b s" '(org-roam-buffer-activate :which-key "roam buffer show ")
|
||||||
"b h" '(org-roam-buffer-deactivate :which-key "roam buffer hide ")
|
"b h" '(org-roam-buffer-deactivate :which-key "roam buffer hide ")
|
||||||
"s" '(org-roam-server-mode :which-key "roam server "))
|
"s" '(org-roam-ui-mode :which-key "roam ui "))
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory "~/Nextcloud2/Notes")
|
(org-roam-directory (file-truename "~/org-notes"))
|
||||||
:config
|
:config
|
||||||
(setq
|
(org-roam-db-autosync-mode)
|
||||||
org-roam-server-host "127.0.0.1"
|
|
||||||
org-roam-server-port 5034
|
|
||||||
org-roam-server-authenticate nil
|
|
||||||
org-roam-server-export-inline-images t
|
|
||||||
org-roam-server-serve-files nil
|
|
||||||
org-roam-server-served-file-extensions '("pdf" "mp4" "ogv")
|
|
||||||
org-roam-server-network-poll t
|
|
||||||
org-roam-server-network-arrows nil
|
|
||||||
org-roam-server-network-label-truncate t
|
|
||||||
org-roam-server-network-label-truncate-length 60
|
|
||||||
org-roam-server-network-label-wrap-length 20)
|
|
||||||
|
|
||||||
|
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
(org-roam-server-mode t)
|
|
||||||
(server-start t)
|
(server-start t)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(setq org-roam-v2-ack t)
|
||||||
|
|
||||||
|
(setq org-roam-directory (file-truename "~/org-notes"))
|
||||||
|
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
: org-roam-protocol
|
: org-roam-protocol
|
||||||
|
*** org-roam-ui
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
(use-package websocket
|
||||||
|
:after org-roam
|
||||||
|
)
|
||||||
|
(use-package simple-httpd
|
||||||
|
:after org-roam
|
||||||
|
)
|
||||||
|
(require 'websocket)
|
||||||
|
(require 'simple-httpd)
|
||||||
|
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/private/org-roam-ui")
|
||||||
|
(load-library "org-roam-ui")
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Languages
|
* Languages
|
||||||
** Flycheck
|
** Flycheck
|
||||||
|
@ -842,50 +851,63 @@
|
||||||
#+end_src
|
#+end_src
|
||||||
** LSP
|
** LSP
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:init
|
:init
|
||||||
(setq lsp-keymap-prefix "C-SPC c")
|
(setq lsp-keymap-prefix "C-SPC c")
|
||||||
;; (setq lsp-clients-clangd-args " --header-insertion-decorators=0 ")
|
;; (setq lsp-clients-clangd-args " --header-insertion-decorators=0 ")
|
||||||
;;(setq lsp-client-packages nil)
|
;;(setq lsp-client-packages nil)
|
||||||
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
||||||
(c++-mode . lsp)
|
(c++-mode . lsp)
|
||||||
;; if you want which-key integration
|
;; if you want which-key integration
|
||||||
(lsp-mode . lsp-enable-which-key-integration))
|
(lsp-mode . lsp-enable-which-key-integration))
|
||||||
:config
|
:config
|
||||||
(add-hook 'c\+\+-mode-hook #'lsp-mode)
|
(add-hook 'c\+\+-mode-hook #'lsp-mode)
|
||||||
(add-hook 'rust-mode-hook #'lsp-mode)
|
(add-hook 'rust-mode-hook #'lsp-mode)
|
||||||
(add-hook 'c-mode-hook #'lsp-mode)
|
(add-hook 'c-mode-hook #'lsp-mode)
|
||||||
|
|
||||||
|
;;(setq lsp-clients-clangd-executable "/home/horhik/code/competitive/clangd")
|
||||||
|
;;(setq lsp-clients-clangd-default-executable "/home/horhik/code/competitive/clangd")
|
||||||
|
;;(lsp-mode . lsp-enable-which-key-integration)
|
||||||
|
:commands (lsp lsp-deferred)
|
||||||
|
)
|
||||||
|
(use-package lsp-treemacs
|
||||||
|
:after lsp-mode
|
||||||
|
)
|
||||||
|
(use-package lsp-ivy)
|
||||||
|
(use-package lsp-ui
|
||||||
|
:after lsp)
|
||||||
|
(use-package company-lsp
|
||||||
|
:ensure t
|
||||||
|
:commands company-lsp
|
||||||
|
:config (push 'company-lsp company-backends))
|
||||||
|
|
||||||
;;(setq lsp-clients-clangd-executable "/home/horhik/code/competitive/clangd")
|
|
||||||
;;(setq lsp-clients-clangd-default-executable "/home/horhik/code/competitive/clangd")
|
|
||||||
;;(lsp-mode . lsp-enable-which-key-integration)
|
|
||||||
:commands (lsp lsp-deferred)
|
|
||||||
)
|
|
||||||
(use-package lsp-treemacs
|
|
||||||
:after lsp-mode
|
|
||||||
)
|
|
||||||
(use-package lsp-ivy)
|
|
||||||
(use-package lsp-ui
|
|
||||||
:after lsp)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** C/CPP
|
** C/CPP
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package irony
|
(use-package irony
|
||||||
:init
|
:init
|
||||||
(add-hook 'c++-mode-hook 'irony-mode)
|
(add-hook 'c++-mode-hook 'irony-mode)
|
||||||
(add-hook 'c-mode-hook 'irony-mode)
|
(add-hook 'c-mode-hook 'irony-mode)
|
||||||
(add-hook 'objc-mode-hook 'irony-mode)
|
(add-hook 'objc-mode-hook 'irony-mode)
|
||||||
(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
||||||
(setq irony-additional-clang-options
|
(setq irony-additional-clang-options
|
||||||
(append '("-std=c++17") irony-additional-clang-options))
|
(append '("-std=c++17") irony-additional-clang-options))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.cxx\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.cxx\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.cpp\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.cpp\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.C\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.C\\'" . c++-mode))
|
||||||
|
(use-package ccls
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq ccls-executable "ccls")
|
||||||
|
(setq lsp-prefer-flymake nil)
|
||||||
|
(setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-cppcheck c/c++-gcc))
|
||||||
|
:hook ((c-mode c++-mode objc-mode) .
|
||||||
|
(lambda () (require 'ccls) (lsp))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Markdown
|
** Markdown
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -920,7 +942,15 @@
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Mastodon
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package mastodon
|
||||||
|
:config
|
||||||
|
(setq mastodon-instance-url "https://mastodon.ml")
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
* Default file
|
* Default file
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq initial-buffer-choice "~/Nextcloud2/Notes/Tasks🧾.org")
|
(org-agenda)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
8
home/pure_emacs/.emacs.d/icons/python
Executable file
8
home/pure_emacs/.emacs.d/icons/python
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g transform="translate(-1.5418e-7 -.00046865)">
|
||||||
|
<g>
|
||||||
|
<path d="m9.8594 2.0009c-1.58 0-2.8594 1.2794-2.8594 2.8594v1.6797h4.2891c.39 0 .71094.57094.71094.96094h-7.1406c-1.58 0-2.8594 1.2794-2.8594 2.8594v3.7812c0 1.58 1.2794 2.8594 2.8594 2.8594h1.1797v-2.6797c0-1.58 1.2716-2.8594 2.8516-2.8594h5.25c1.58 0 2.8594-1.2716 2.8594-2.8516v-3.75c0-1.58-1.2794-2.8594-2.8594-2.8594zm-.71875 1.6094c.4 0 .71875.12094.71875.71094s-.31875.89062-.71875.89062c-.39 0-.71094-.30062-.71094-.89062s.32094-.71094.71094-.71094z" fill="#3c78aa"/>
|
||||||
|
<path d="m17.959 7v2.6797c0 1.58-1.2696 2.8594-2.8496 2.8594h-5.25c-1.58 0-2.8594 1.2696-2.8594 2.8496v3.75a2.86 2.86 0 0 0 2.8594 2.8613h4.2812a2.86 2.86 0 0 0 2.8594 -2.8613v-1.6797h-4.291c-.39 0-.70898-.56898-.70898-.95898h7.1406a2.86 2.86 0 0 0 2.8594 -2.8613v-3.7793a2.86 2.86 0 0 0 -2.8594 -2.8594zm-9.6387 4.5137-.0039.0039c.01198-.0024.02507-.0016.03711-.0039zm6.5391 7.2754c.39 0 .71094.30062.71094.89062a.71 .71 0 0 1 -.71094 .70898c-.4 0-.71875-.11898-.71875-.70898s.31875-.89062.71875-.89062z" fill="#fdd835"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -1,6 +1,7 @@
|
||||||
|
(setq max-lisp-eval-depth 10000)
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives
|
(add-to-list 'package-archives
|
||||||
'("melpa" . "http://melpa.org/packages/"))
|
'("melpa" . "http://stable.melpa.org/packages/"))
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
|
@ -282,7 +283,7 @@
|
||||||
(treemacs-create-icon :file "zip.png" :fallback "🗃️" :extensions ("zip" "tar" "tar.xz" "xz" "xfv" "7z"))
|
(treemacs-create-icon :file "zip.png" :fallback "🗃️" :extensions ("zip" "tar" "tar.xz" "xz" "xfv" "7z"))
|
||||||
(treemacs-create-icon :file "todo.png" :fallback "🗃️" :extensions ("TODO" "todo" "Tasks" ))
|
(treemacs-create-icon :file "todo.png" :fallback "🗃️" :extensions ("TODO" "todo" "Tasks" ))
|
||||||
(treemacs-create-icon :file "webassembly" :fallback "🗃️" :extensions ("wasm" "webasm" "webassembly"))
|
(treemacs-create-icon :file "webassembly" :fallback "🗃️" :extensions ("wasm" "webasm" "webassembly"))
|
||||||
(treemacs-create-icon :file "python" :fallback "🗃️" :extensions ("py" "python"))))
|
(treemacs-create-icon :file "python.png" :fallback "🗃️" :extensions ("py" "python"))))
|
||||||
|
|
||||||
(treemacs-load-theme 'Material)
|
(treemacs-load-theme 'Material)
|
||||||
|
|
||||||
|
@ -385,7 +386,7 @@
|
||||||
"f v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" ))
|
"f v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" ))
|
||||||
"f d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" ))
|
"f d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" ))
|
||||||
"f a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
|
"f a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
|
||||||
"f b" '(lambda() (interactive) (find-file "~/Notes") :which-key "my brain")
|
"f b" '(lambda() (interactive) (find-file "~/org-notes") :which-key "my brain")
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
|
@ -444,6 +445,7 @@
|
||||||
("DONE"." D ")
|
("DONE"." D ")
|
||||||
("NEXT"." N ")
|
("NEXT"." N ")
|
||||||
("IDEA"." 💡 ")
|
("IDEA"." 💡 ")
|
||||||
|
("READ"." 🔖 ")
|
||||||
("DREAM"." ✨ ")
|
("DREAM"." ✨ ")
|
||||||
(":LOGBOOK:"." LOG ")
|
(":LOGBOOK:"." LOG ")
|
||||||
))
|
))
|
||||||
|
@ -507,10 +509,10 @@
|
||||||
(use-package org
|
(use-package org
|
||||||
:hook ((org-mode . my/org-mode-setup)
|
:hook ((org-mode . my/org-mode-setup)
|
||||||
(org-mode . variable-pitch-mode)
|
(org-mode . variable-pitch-mode)
|
||||||
(org-mode . org-inddent-mode)
|
(org-mode . org-indent-mode)
|
||||||
(org-mode . prettify-symbols-mode)
|
(org-mode . prettify-symbols-mode)
|
||||||
)
|
)
|
||||||
:config (setq org-agenda-files `("~/Nextcloud2/Notes/Ideas💡.org" "~/Nextcloud2/Notes/Lists📜.org" "~/Nextcloud2/Notes/Projects💻.org" "~/Nextcloud2/Notes/Tasks🧾.org"))
|
:config (setq org-agenda-files `("~/org-notes"))
|
||||||
(display-line-numbers-mode 0)
|
(display-line-numbers-mode 0)
|
||||||
(org-bullets-mode t)
|
(org-bullets-mode t)
|
||||||
(org-indent-mode t)
|
(org-indent-mode t)
|
||||||
|
@ -524,6 +526,7 @@
|
||||||
("STARTED" . "yellow")
|
("STARTED" . "yellow")
|
||||||
("DREAM" . "pink")
|
("DREAM" . "pink")
|
||||||
("IDEA" . "gold")
|
("IDEA" . "gold")
|
||||||
|
("READ" . "violet")
|
||||||
("ARTICLE" . "lightblue")
|
("ARTICLE" . "lightblue")
|
||||||
("CANCELED" .
|
("CANCELED" .
|
||||||
(:foreground "blue"
|
(:foreground "blue"
|
||||||
|
@ -532,7 +535,7 @@
|
||||||
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||||
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)"
|
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)"
|
||||||
"WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")
|
"WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")
|
||||||
(sequence "IDEA(i)" "DREAM(d)" "ARTICLE(a)" "|" "DONE(d!)")))
|
(sequence "IDEA(i)" "DREAM(d)" "READ(r)" "ARTICLE(a)" "|" "DONE(d!)")))
|
||||||
|
|
||||||
(setq org-agenda-custom-commands '(("d" "Dashboard" ((agenda "" ((org-deadline-warning-days 7)))
|
(setq org-agenda-custom-commands '(("d" "Dashboard" ((agenda "" ((org-deadline-warning-days 7)))
|
||||||
(todo "NEXT" ((org-agenda-overriding-header
|
(todo "NEXT" ((org-agenda-overriding-header
|
||||||
|
@ -542,6 +545,8 @@
|
||||||
"Active Projects")))))
|
"Active Projects")))))
|
||||||
("n" "Next Tasks" ((todo "NEXT" ((org-agenda-overriding-header
|
("n" "Next Tasks" ((todo "NEXT" ((org-agenda-overriding-header
|
||||||
"Next Tasks")))))
|
"Next Tasks")))))
|
||||||
|
("r" "Read pages" ((todo "READ" ((org-agenda-overriding-header
|
||||||
|
"To read")))))
|
||||||
("i" "Ideas" ((todo "IDEA" ((org-agenda-overriding-header
|
("i" "Ideas" ((todo "IDEA" ((org-agenda-overriding-header
|
||||||
"Ideas "))
|
"Ideas "))
|
||||||
)
|
)
|
||||||
|
@ -638,50 +643,51 @@
|
||||||
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
||||||
(add-to-list 'org-structure-template-alist '("json" . "src json"))
|
(add-to-list 'org-structure-template-alist '("json" . "src json"))
|
||||||
|
|
||||||
(use-package org-roam-server)
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook
|
:hook
|
||||||
(after-init . org-roam-mode)
|
(after-init . org-roam-mode)
|
||||||
:general (general-nmap
|
:general (general-nmap
|
||||||
:prefix "SPC r"
|
:prefix "SPC r"
|
||||||
;; Org-roam keymap
|
;; Org-roam keymap
|
||||||
"d" '(org-roam-dailies-find-today :which-key "roam today")
|
"d" '(org-roam-dailies-find-today :which-key "roam today")
|
||||||
"t a" '(org-roam-tag-add :which-key "roam add tag")
|
"t a" '(org-roam-tag-add :which-key "roam add tag")
|
||||||
"t d" '(org-roam-tag-delete :which-key "roam delete tag")
|
"t d" '(org-roam-tag-delete :which-key "roam delete tag")
|
||||||
"a a" '(org-roam-alias-add :which-key "roam add alias")
|
"a a" '(org-roam-alias-add :which-key "roam add alias")
|
||||||
"f f" '(org-roam-find-file :which-key "roam findgfile ")
|
"f f" '(org-roam-find-file :which-key "roam findgfile ")
|
||||||
"g" '(org-roam-graph-show :which-key "roam graph ")
|
"g" '(org-roam-graph-show :which-key "roam graph ")
|
||||||
"b b" '(org-roam-buffer-toggle-display :which-key "roam buffer toggle ")
|
"b b" '(org-roam-buffer-toggle-display :which-key "roam buffer toggle ")
|
||||||
"b s" '(org-roam-buffer-activate :which-key "roam buffer show ")
|
"b s" '(org-roam-buffer-activate :which-key "roam buffer show ")
|
||||||
"b h" '(org-roam-buffer-deactivate :which-key "roam buffer hide ")
|
"b h" '(org-roam-buffer-deactivate :which-key "roam buffer hide ")
|
||||||
"s" '(org-roam-server-mode :which-key "roam server "))
|
"s" '(org-roam-ui-mode :which-key "roam ui "))
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory "~/Nextcloud2/Notes")
|
(org-roam-directory (file-truename "~/org-notes"))
|
||||||
:config
|
:config
|
||||||
(setq
|
(org-roam-db-autosync-mode)
|
||||||
org-roam-server-host "127.0.0.1"
|
|
||||||
org-roam-server-port 5034
|
|
||||||
org-roam-server-authenticate nil
|
|
||||||
org-roam-server-export-inline-images t
|
|
||||||
org-roam-server-serve-files nil
|
|
||||||
org-roam-server-served-file-extensions '("pdf" "mp4" "ogv")
|
|
||||||
org-roam-server-network-poll t
|
|
||||||
org-roam-server-network-arrows nil
|
|
||||||
org-roam-server-network-label-truncate t
|
|
||||||
org-roam-server-network-label-truncate-length 60
|
|
||||||
org-roam-server-network-label-wrap-length 20)
|
|
||||||
|
|
||||||
|
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
(org-roam-server-mode t)
|
|
||||||
(server-start t)
|
(server-start t)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(setq org-roam-v2-ack t)
|
||||||
|
|
||||||
|
(setq org-roam-directory (file-truename "~/org-notes"))
|
||||||
|
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
|
||||||
|
(use-package websocket
|
||||||
|
:after org-roam
|
||||||
|
)
|
||||||
|
(use-package simple-httpd
|
||||||
|
:after org-roam
|
||||||
|
)
|
||||||
|
(require 'websocket)
|
||||||
|
(require 'simple-httpd)
|
||||||
|
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/private/org-roam-ui")
|
||||||
|
(load-library "org-roam-ui")
|
||||||
|
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:init
|
:init
|
||||||
;;(flycheck-c/c++-clang-executable "c/c++-clang" "~/code/competitive/clang++")
|
;;(flycheck-c/c++-clang-executable "c/c++-clang" "~/code/competitive/clang++")
|
||||||
|
@ -717,22 +723,34 @@
|
||||||
(use-package lsp-ivy)
|
(use-package lsp-ivy)
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:after lsp)
|
:after lsp)
|
||||||
|
(use-package company-lsp
|
||||||
|
:ensure t
|
||||||
|
:commands company-lsp
|
||||||
|
:config (push 'company-lsp company-backends))
|
||||||
|
|
||||||
(use-package irony
|
(use-package irony
|
||||||
:init
|
:init
|
||||||
(add-hook 'c++-mode-hook 'irony-mode)
|
(add-hook 'c++-mode-hook 'irony-mode)
|
||||||
(add-hook 'c-mode-hook 'irony-mode)
|
(add-hook 'c-mode-hook 'irony-mode)
|
||||||
(add-hook 'objc-mode-hook 'irony-mode)
|
(add-hook 'objc-mode-hook 'irony-mode)
|
||||||
(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
||||||
(setq irony-additional-clang-options
|
(setq irony-additional-clang-options
|
||||||
(append '("-std=c++17") irony-additional-clang-options))
|
(append '("-std=c++17") irony-additional-clang-options))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.cxx\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.cxx\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.cpp\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.cpp\\'" . c++-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.C\\'" . c++-mode))
|
(add-to-list 'auto-mode-alist '("\\.C\\'" . c++-mode))
|
||||||
|
(use-package ccls
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq ccls-executable "ccls")
|
||||||
|
(setq lsp-prefer-flymake nil)
|
||||||
|
(setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-cppcheck c/c++-gcc))
|
||||||
|
:hook ((c-mode c++-mode objc-mode) .
|
||||||
|
(lambda () (require 'ccls) (lsp))))
|
||||||
|
|
||||||
(use-package markdown-mode)
|
(use-package markdown-mode)
|
||||||
|
|
||||||
|
@ -755,11 +773,9 @@
|
||||||
(setq rustic-lsp-server 'rls)
|
(setq rustic-lsp-server 'rls)
|
||||||
)
|
)
|
||||||
|
|
||||||
(setq initial-buffer-choice "~/Nextcloud2/Notes/Tasks🧾.org")
|
(use-package mastodon
|
||||||
(custom-set-variables
|
:config
|
||||||
;; custom-set-variables was added by Custom.
|
(setq mastodon-instance-url "https://mastodon.ml")
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
)
|
||||||
;; Your init file should contain only one such instance.
|
|
||||||
;; If there is more than one, they won't work right.
|
(org-agenda)
|
||||||
'(package-selected-packages
|
|
||||||
'(rustic rust-mode workgroups2 which-key visual-fill-column use-package undo-tree tuareg treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil treemacs-all-the-icons realgud rainbow-delimiters pretty-symbols org-roam-server org-caldav org-bullets ob-browser nix-mode neotree lsp-ui lsp-treemacs lsp-ivy ivy-posframe highlight-parentheses gruvbox-theme general flycheck-irony evil-collection elisp-lint doom-themes doom-modeline counsel-projectile company-box clang-format+ all-the-icons-ivy-rich all-the-icons-ivy)))
|
|
||||||
|
|
3
home/pure_emacs/.emacs.d/mastodon.plstore
Normal file
3
home/pure_emacs/.emacs.d/mastodon.plstore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
;;; public entries -*- mode: plstore -*-
|
||||||
|
(("mastodon-https://mastodon.ml" :id "2598" :name "mastodon.el" :website "https://github.com/jdenen/mastodon.el" :redirect_uri "urn:ietf:wg:oauth:2.0:oob" :client_id "iHqXKa5piSOsmkqynq-XMFVGMLpusIqsUdyGPOOpXMk" :client_secret "pMU14n1X8B28rC0ZQyEfQluV3QE74W1ygUZzvAWojsM" :vapid_key "BBqZRaF-YBnGFh-c6VZO9dkjfzAmOeCSMwQEgb7sp0EnMH1xHzfks29tTNtvLw45MdLjNKN4-8W7JvG1vP4376o=")
|
||||||
|
("mastodon-https://mastodon.social" :id "872135" :name "mastodon.el" :website "https://github.com/jdenen/mastodon.el" :redirect_uri "urn:ietf:wg:oauth:2.0:oob" :client_id "_rt1V_Z2TKD-uvs6SsP0s7B_vy7nyifIqRUQQLm8MN0" :client_secret "DIzCJmnUzziajbp_VMGpVDq373hMcoSPlnX_4ysRfig" :vapid_key "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M="))
|
1
home/pure_emacs/.emacs.d/private/org-roam-ui
Submodule
1
home/pure_emacs/.emacs.d/private/org-roam-ui
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 9ad111d2102c24593f6ac012206bb4b2c9c6c4e1
|
Loading…
Reference in a new issue