diff --git a/.gitignore b/.gitignore index 6615921..d328b64 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,9 @@ home/tmux/.config/tmux/plugins/ *.o *~ +home/pure_emacs/.emacs.d/.cache/ +home/pure_emacs/.emacs.d/elpa/ +home/pure_emacs/.emacs.d/org-roam.db +home/pure_emacs/.emacs.d/projectile-bookmarks.eld +home/pure_emacs/.emacs.d/recentf +home/pure_emacs/.emacs.d/transient/ diff --git a/home/pure_emacs/.emacs b/home/pure_emacs/.emacs new file mode 100644 index 0000000..1d00e78 --- /dev/null +++ b/home/pure_emacs/.emacs @@ -0,0 +1,13 @@ +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; 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. + '(custom-safe-themes + '("75b8719c741c6d7afa290e0bb394d809f0cc62045b93e1d66cd646907f8e6d43" default))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; 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. + ) diff --git a/home/pure_emacs/.emacs.d/init.el b/home/pure_emacs/.emacs.d/init.el index c3963cd..1262863 100644 --- a/home/pure_emacs/.emacs.d/init.el +++ b/home/pure_emacs/.emacs.d/init.el @@ -19,7 +19,7 @@ (defvar package-list - '( lsp-mode rustic evil-mc rainbow-delimiters doom-themes doom-modeline lusty-explorer ac-racer auto-complete all-the-icons linum-relative racer cargo flycheck-rust rust-mode gruvbox-theme evil general use-package treemacs treemacs-all-the-icons treemacs-evil org-roam org-roam-server interaction-log)) + '(use-package gruvbox-theme)) (dolist (p package-list) (when (not (package-installed-p p)) @@ -33,31 +33,31 @@ '(custom-safe-themes '("6b5c518d1c250a8ce17463b7e435e9e20faa84f3f7defba8b579d4f5925f60c1" "75b8719c741c6d7afa290e0bb394d809f0cc62045b93e1d66cd646907f8e6d43" "7661b762556018a44a29477b84757994d8386d6edee909409fabe0631952dad9" default)) '(package-selected-packages - '(neotree treemacs-persp spaceline-all-the-icons all-the-icons-ivy-rich all-the-icons-ivy treemacs-the-icons dired-icon treemacs-magit treemacs-projectile nlinum linum-mode unicode-fonts ewal-doom-themes ivy-rich which-key counsel org-roam treemacs-evil treemacs-all-the-icons treemacs use-package general gruvbox-theme flycheck-rust cargo linum-relative ac-racer lusty-explorer doom-modeline doom-themes rainbow-delimiters evil-mc rustic lsp-mode avy))) + '(org-roam-server visual-fill-column org-bullets workgroups2 neotree treemacs-persp treemacs-magit treemacs-icons-dired treemacs-projectile treemacs-evil treemacs-all-the-icons ivy-rich which-key rainbow-delimiters highlight-parentheses org-roam general use-package))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; 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. - ) +;; neotree treemacs-persp spaceline-all-the-icons all-the-icons-ivy-rich all-the-icons-ivy treemacs-the-icons dired-icon treemacs-magit treemacs-projectile nlinum linum-mode unicode-fonts ewal-doom-themes ivy-rich which-key counsel org-roam treemacs-evil treemacs-all-the-icons treemacs use-package general gruvbox-theme flycheck-rust cargo linum-relative ac-racer lusty-explorer doom-modeline doom-themes rainbow-delimiters evil-mc rustic lsp-mode avy) +;; (custom-set-faces +;; ;; custom-set-faces was added by Custom. +;; ;; 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. +;; ) ;; Setting up use-package (require 'use-package) +(use-package gruvbox-theme) (setq use-package-always-ensure t) ;; Default fonts (add-to-list 'default-frame-alist '(font . "Mononoki Nerd Font" )) (set-face-attribute 'default t :font "Mononoki Nerd Font" ) -(use-package unicode-fonts - :init - (unicode-fonts-setup)) ;;(set-fontset-font "fontset-startup" 'unicode ;; (font-spec :name "Mononoki Nerd Font" :size 14)) +(when (member "Noto Color Emoji" (font-family-list)) + (set-fontset-font t 'unicode "Noto Color Emoji" nil 'prepend)) +;; โ˜บ๏ธ โ˜ป ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜… ๐Ÿ˜† ๐Ÿ˜Š ๐Ÿ˜Ž ๐Ÿ˜‡ ๐Ÿ˜ˆ ๐Ÿ˜ ๐Ÿคฃ ๐Ÿคฉ ๐Ÿคช ๐Ÿฅณ ๐Ÿ˜ ๐Ÿ˜€ ๐Ÿ˜‚ ๐Ÿค  ๐Ÿคก ๐Ÿค‘ ๐Ÿค“ ๐Ÿค– ๐Ÿ˜— ๐Ÿ˜š ๐Ÿ˜˜ ๐Ÿ˜™ ๐Ÿ˜‰ ๐Ÿค— ๐Ÿ˜ ๐Ÿฅฐ ๐Ÿคค ๐Ÿ˜‹ ๐Ÿค” ๐Ÿคจ ๐Ÿง ๐Ÿคญ ๐Ÿคซ ๐Ÿ˜ฏ ๐Ÿค ๐Ÿ˜Œ ๐Ÿ˜– ๐Ÿ˜• ๐Ÿ˜ณ ๐Ÿ˜” ๐Ÿคฅ ๐Ÿฅด ๐Ÿ˜ฎ ๐Ÿ˜ฒ ๐Ÿคฏ ๐Ÿ˜ฉ ๐Ÿ˜ซ ๐Ÿฅฑ ๐Ÿ˜ช ๐Ÿ˜ด ๐Ÿ˜ต โ˜น๏ธ ๐Ÿ˜ฆ ๐Ÿ˜ž ๐Ÿ˜ฅ ๐Ÿ˜Ÿ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿคข ๐Ÿคฎ ๐Ÿ˜ท ๐Ÿค’ ๐Ÿค• ๐Ÿฅต ๐Ÿฅถ ๐Ÿฅบ ๐Ÿ˜ฌ ๐Ÿ˜“ ๐Ÿ˜ฐ ๐Ÿ˜จ ๐Ÿ˜ฑ ๐Ÿ˜’ ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ค ๐Ÿ˜ฃ ๐Ÿ˜ง ๐Ÿคฌ ๐Ÿ˜ธ ๐Ÿ˜น ๐Ÿ˜บ ๐Ÿ˜ป ๐Ÿ˜ผ ๐Ÿ˜ฝ ๐Ÿ˜พ ๐Ÿ˜ฟ ๐Ÿ™€ ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š ๐Ÿคฆ ๐Ÿคท ๐Ÿ™… ๐Ÿ™† ๐Ÿ™‹ ๐Ÿ™Œ ๐Ÿ™ ๐Ÿ™Ž ๐Ÿ™‡ ๐Ÿ™ ๐Ÿ‘ฏ ๐Ÿ’ƒ ๐Ÿ•บ ๐Ÿคณ ๐Ÿ’‡ ๐Ÿ’ˆ ๐Ÿ’† ๐Ÿง– ๐Ÿง˜ ๐Ÿง ๐ŸงŽ ๐Ÿ‘ฐ ๐Ÿคฐ ๐Ÿคฑ ๐Ÿ‘ถ ๐Ÿง’ ๐Ÿ‘ฆ ๐Ÿ‘ง ๐Ÿ‘ฉ ๐Ÿ‘จ ๐Ÿง‘ ๐Ÿง” ๐Ÿง“ ๐Ÿ‘ด ๐Ÿ‘ต ๐Ÿ‘ค ๐Ÿ‘ฅ ๐Ÿ‘ช ๐Ÿ‘ซ ๐Ÿ‘ฌ ๐Ÿ‘ญ ๐Ÿ‘ฑ ๐Ÿ‘ณ ๐Ÿ‘ฒ ๐Ÿง• ๐Ÿ‘ธ ๐Ÿคด ๐ŸŽ… ๐Ÿคถ ๐Ÿง ๐Ÿฆป ๐Ÿฆฎ ๐Ÿฆฏ ๐Ÿฆบ ๐Ÿฆผ ๐Ÿฆฝ ๐Ÿฆพ ๐Ÿฆฟ ๐Ÿคต ๐Ÿ‘ฎ ๐Ÿ‘ท ๐Ÿ’ ๐Ÿ’‚ ๐Ÿ•ด ๐Ÿ•ต๏ธ ๐Ÿฆธ ๐Ÿฆน ๐Ÿง™ ๐Ÿงš ๐Ÿงœ ๐Ÿง ๐Ÿงž ๐Ÿง› ๐ŸงŸ ๐Ÿ‘ผ ๐Ÿ‘ฟ ๐Ÿ‘ป ๐Ÿ‘น ๐Ÿ‘บ ๐Ÿ‘ฝ ๐Ÿ‘พ ๐Ÿ›ธ ๐Ÿ’€ โ˜ ๏ธ ๐Ÿ•ฑ ๐Ÿง  ๐Ÿฆด ๐Ÿ‘ ๐Ÿ‘€ ๐Ÿ‘‚ ๐Ÿ‘ƒ ๐Ÿ‘„ ๐Ÿ—ข ๐Ÿ‘… ๐Ÿฆท ๐Ÿฆต ๐Ÿฆถ ๐Ÿ’ญ ๐Ÿ—ฌ ๐Ÿ—ญ ๐Ÿ’ฌ ๐Ÿ—จ ๐Ÿ—ฉ ๐Ÿ’ฆ ๐Ÿ’ง ๐Ÿ’ข ๐Ÿ’ซ ๐Ÿ’ค ๐Ÿ’จ ๐Ÿ’ฅ ๐Ÿ’ช ๐Ÿ—ฒ ๐Ÿ”ฅ ๐Ÿ’ก ๐Ÿ’ฉ ๐Ÿ’ฏ ;; Fallback for emojies -(set-fontset-font "fontset-default" 'unicode - (font-spec :name "Twemoji" :size 16)) (load-theme 'gruvbox-dark-hard) @@ -80,19 +80,20 @@ (dolist (mode '(org-mode-hook)) (add-hook mode (lambda () (display-line-numbers-mode 0)))) -(use-package emojify - :hook (after-init . global-emojify-mode) - :config - (setq emojify-emoji-set "twemoji-v2") - (setq emojify-set-emoji-styles 'image) - (setq emojify-display-style 'image)) +;; (use-package emojify +;; :hook (after-init . global-emojify-mode) +;; :config +;; (setq emojify-emoji-set "twemoji-v2") +;; (setq emojify-set-emoji-styles 'image) +;; (setq emojify-display-style 'image)) ;; Evil mode +(use-package undo-tree) (use-package evil :init - (setq evil-want-integration t) (setq evil-want-keybinding nil) + (setq evil-want-integration t) (setq evil-want-C-u-scroll t) (setq evil-want-C-i-jump nil) (global-undo-tree-mode) @@ -163,6 +164,7 @@ (find-file (expand-file-name (format "%s" file)))) file ) ) +(use-package general) (general-evil-setup) (general-nmap :prefix "SPC" @@ -183,6 +185,7 @@ ;; Org roam +(use-package org-roam-server) (use-package org-roam :ensure t :hook @@ -352,7 +355,7 @@ (set-face-attribute 'variable-pitch nil ;; :font "Cantarell" - :font "Mononoki Nerd Font" + :font "Hack" :height 1.3 :weight 'light) @@ -367,7 +370,7 @@ (org-level-8 . 1.1))) (set-face-attribute (car face) nil :font "ubuntu" :weight 'bold :height (cdr face))) (require 'org-indent) -(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch :font "mononoki" ) +(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch :font "Hack" ) (set-face-attribute 'org-table nil :inherit 'fixed-pitch) (set-face-attribute 'org-formula nil :inherit 'fixed-pitch) (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch)) @@ -396,7 +399,7 @@ (org-mode . variable-pitch-mode) ) :config (setq org-agenda-files `("~/Brain" "~/Brain/Tasks/Tasks.org")) - (org-bullets-mode) + (org-bullets-mode t) (setq org-ellipsis " โ–ธ" org-hide-emphasis-markers t org-src-fontify-natively t org-src-tab-acts-natively t org-edit-src-content-indentation 2 org-hide-block-startup nil org-src-preserve-indentation nil org-startup-folded 'content org-cycle-separator-lines 2) @@ -501,3 +504,70 @@ (use-package visual-fill-column :defer t :hook (org-mode . my/visual-fill)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; 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. + ) + + +(treemacs-create-theme "Material" + :icon-directory (treemacs-join-path treemacs-dir "/home/horhik/.emacs.d/icons") + :config + (progn + (treemacs-create-icon :file "folder-core-open.png" :fallback "๐Ÿ“" :extensions (root-open)) + (treemacs-create-icon :file "folder-core.png" :fallback "๐Ÿ“" :extensions (root-closed)) + (treemacs-create-icon :file "folder-node-open.png" :fallback "๐Ÿ“‚" :extensions (dir-open)) + (treemacs-create-icon :file "folder-node.png" :fallback "๐Ÿ“" :extensions (dir-closed)) + (treemacs-create-icon :file "folder-test-open.png" :fallback "๐Ÿ“‚" :extensions ("tests")) + (treemacs-create-icon :file "folder-test.png" :fallback "๐Ÿ“" :extensions ("tests")) + (treemacs-create-icon :file "emacs.png" :fallback "๐Ÿ’œ" :extensions ("el" "elc" ".spacemacs" "doom" )) + (treemacs-create-icon :file "emacs.png" :fallback "๐Ÿ’œ" :extensions ("el" "elc")) + (treemacs-create-icon :file "markdown.png" :fallback "๐Ÿ“–" :extensions ("md")) + (treemacs-create-icon :file "readme.png" :fallback "๐Ÿ“–" :extensions ("readme.md" "README.md" "README" "readme")) + (treemacs-create-icon :file "editorconfig.png" :fallback "๐Ÿ“–" :extensions ("editorconfig")) + (treemacs-create-icon :file "org.png" :fallback "๐Ÿด" :extensions ("org")) + (treemacs-create-icon :file "rust.png" :fallback "๐Ÿด" :extensions ("rs")) + (treemacs-create-icon :file "haskell.png" :fallback "๐Ÿด" :extensions ("hs" "haskell")) + (treemacs-create-icon :file "c.png" :fallback "๐Ÿด" :extensions ("c")) + (treemacs-create-icon :file "cpp.png" :fallback "๐Ÿด" :extensions ("cpp" "c++")) + (treemacs-create-icon :file "h.png" :fallback "๐Ÿด" :extensions ("h")) + (treemacs-create-icon :file "diff.png" :fallback "๐Ÿด" :extensions ("diff")) + (treemacs-create-icon :file "makefile.png" :fallback "๐Ÿด" :extensions ("mk" "make" "Makefile")) + (treemacs-create-icon :file "assembly.png" :fallback "๐Ÿด" :extensions ("bin" "so" "o")) + (treemacs-create-icon :file "document.png" :fallback "๐Ÿด" :extensions ("" "txt")) + (treemacs-create-icon :file "file.png" :fallback "๐Ÿด" :extensions (fallback)) + (treemacs-create-icon :file "toml.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("toml")) + (treemacs-create-icon :file "json.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("json")) + (treemacs-create-icon :file "yaml.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("yml" "yaml")) + (treemacs-create-icon :file "vim.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("vim" "vi" "nvim")) + (treemacs-create-icon :file "video.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("mp4" "avi" "gif" "mpv")) + (treemacs-create-icon :file "audio.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("mp3" "ogg" "wav" )) + (treemacs-create-icon :file "image.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("png" "jpg")) + (treemacs-create-icon :file "svg.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("svg")) + (treemacs-create-icon :file "css.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("css")) + (treemacs-create-icon :file "console.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("bash" "sh")) + (treemacs-create-icon :file "certificate.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("cert" "LICENSE" "license" "gpl" "mit" "gpl3" "gplv3" "apache")) + (treemacs-create-icon :file "database.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("sqlite" "db" "sql")) + (treemacs-create-icon :file "lua.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("lua")) + (treemacs-create-icon :file "javascript.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("js" "javascript")) + (treemacs-create-icon :file "typescript.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("ts" "typescript")) + (treemacs-create-icon :file "react.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("jsx")) + (treemacs-create-icon :file "react_ts.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("tsx")) + (treemacs-create-icon :file "settings.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("config" "conf" "rc" "*rc")) + (treemacs-create-icon :file "sass.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("sass" "scss")) + (treemacs-create-icon :file "xml.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("xml")) + (treemacs-create-icon :file "less.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("less")) + (treemacs-create-icon :file "pdf.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("pdf")) + (treemacs-create-icon :file "tex.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("tex" "latex" )) + (treemacs-create-icon :file "log.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("log" )) + (treemacs-create-icon :file "word.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("docs" "docx" "word" )) + (treemacs-create-icon :file "powerpoint.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("ppt" "pptx" )) + (treemacs-create-icon :file "html.png" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("html")) + (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 "webassembly" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("wasm" "webasm" "webassembly")) + (treemacs-create-icon :file "python" :fallback "๐Ÿ—ƒ๏ธ" :extensions ("py" "python")))) + +(treemacs-load-theme 'Material)