1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-12-01 10:56:37 +00:00

update emacs config

This commit is contained in:
horhik 2021-05-03 00:11:56 +03:00
parent 319efb7f8f
commit 41956be750
5 changed files with 988 additions and 304 deletions

View file

@ -0,0 +1,435 @@
(require 'package)
(setq inhibit-startup-message t)
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(visual-line-mode t)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/")
'("org" . "https://orgmode.org/elpa/"))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(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))
(dolist (p package-list)
(when (not (package-installed-p p))
(package-install p)))
(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" "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 treema
cs-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 carg
o 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)
(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))
;; Fallback for emojies
(set-fontset-font "fontset-default" 'unicode
(font-spec :name "Twemoji" :size 14))
(load-theme 'gruvbox-dark-hard)
;; Emojies
(use-package emojify
:hook (after-init . global-emojify-mode)
:config
(setq emojify-emoji-set "twemoji-v2")
(setq emojify-set-emoji-styles 'unicode)
(setq emojify-display-style 'unicode))
;; mode line
(require 'doom-modeline)
(doom-modeline-mode 1)
;; Line numbers
(column-number-mode)
;; Enable line numbers for some modes
(dolist (mode '(text-mode-hook
prog-mode-hook
conf-mode-hook))
(add-hook mode (lambda ()
(display-line-numbers-mode 1)
(setq display-line-numbers 'relative))))
;; Override some modes which derive from the above
(dolist (mode '(org-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0))))
(use-package evil
:ensure t
:init
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
(setq evil-want-keybinding nil)
:config
(evil-mode 1)
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
(evil-global-set-key 'motion "j" 'evil-next-visual-line)
(evil-global-set-key 'motion "k" 'evil-previous-visual-line))
(use-package undo-tree
:after evil
:init
(global-undo-tree-mode)
(evil-set-undo-system 'undo-tree))
(use-package evil-mc
:after evil
:config
(evil-mc-mode 1) ;; enable
(global-set-key (kbd "<secape>") 'keyboard-escape-quit)
:bind (
:map evil-normal-state-map
("SPC m u" . evil-mc-undo-all-cursors)
:map evil-visual-state-map
("SPC m a" . evil-mc-make-cursor-in-visual-selection-beg)))
(use-package evil-collection
:ensure t
:after evil
:config
(evil-collection-init))
(use-package counsel)
(use-package ivy
:diminish
:bind (
("M-x" . counsel-M-x)
("C-s" . swiper)
:map ivy-minibuffer-map
("TAB" . ivy-alt-done)
("C-f" . ivy-alt-done)
("C-l" . ivy-alt-done)
("C-j" . ivy-next-line)
("C-k" . ivy-previous-line)
:map ivy-switch-buffer-map
("C-k" . ivy-previous-line)
("C-l" . ivy-done)
("C-d" . ivy-switch-buffer-kill)
:map ivy-reverse-i-search-map
("C-k" . ivy-previous-line)
("C-d" . ivy-reverse-i-search-kill))
:init
(ivy-mode 1))
(defun add-to-map(keys func)
"Add a keybinding in evil mode from keys to func."
(define-key evil-normal-state-map (kbd keys) func)
(define-key evil-motion-state-map (kbd keys) func))
(add-to-map "<SPC>" nil)
(add-to-map "<SPC> s" 'save-buffer)
(defun open-file (file)
"just more shortest function for opening the file"
(interactive)
((lambda (file) (interactive)
(find-file (expand-file-name (format "%s" file)))) file ) )
(general-evil-setup)
(general-define-key
:prefix "SPC"
:keymaps 'normal
"o" '(treemacs :which-key "treemacs")
"SPC" '(counsel-M-x :which-key "M-x")
;; dotfiles editing config
"f f" '(counsel-find-file :which-key "find-file")
"f r" '(counsel-buffer-or-recentf :which-key "recent files")
;; switch buffer
"b b" '(counsel-switch-buffer :which-key "switch buff")
;; Bind projectile keymap
"p" '(:keymap projectile-command-map :package projectile)
;; Edit common files
"f e" '(lambda() (interactive) (find-file "~/.emacs.d/config.org") :which-key "config.org")
"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 a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
"f b" '(lambda() (interactive) (find-file "~/Brain" :which-key "my brain")))
(use-package org-roam
:ensure t
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "~/Brain")
:config
(setq
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)
:bind (:map org-roam-mode-map
(("C-c o l" . org-roam)
("C-c o f" . org-roam-find-file)
("C-c o g" . org-roam-graph)
("C-c o t" . org-roam-dailies-capture-today))
:map org-mode-map
(("C-c o i" . org-roam-insert))
(("C-c o I" . org-roam-insert-immediate))))
(require 'org-roam-protocol)
(use-package interaction-log
:ensure t)
(use-package highlight-parentheses
:ensure t
:init
(global-highlight-parentheses-mode t)
(show-paren-mode t)) ;
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
;;Which key
(use-package which-key
:init (which-key-mode)
:diminish which-key-mode
:config
(setq which-key-idle-delay 0.3))
(use-package ivy-rich
:init
(ivy-rich-mode 1))
(use-package all-the-icons)
(use-package treemacs-all-the-icons)
(use-package treemacs
:after all-the-icons
:ensure t
:defer t
:init
(with-eval-after-load 'winum
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
:config
(progn
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
treemacs-deferred-git-apply-delay 0.5
treemacs-directory-name-transformer #'identity
treemacs-display-in-side-window t
treemacs-eldoc-display t
treemacs-file-event-delay 5000
treemacs-file-extension-regex treemacs-last-period-regex-value
treemacs-file-follow-delay 0.2
treemacs-file-name-transformer #'identity
treemacs-follow-after-init t
treemacs-git-command-pipe ""
treemacs-goto-tag-strategy 'refetch-index
treemacs-indentation 2
treemacs-indentation-string " "
treemacs-is-never-other-window nil
treemacs-max-git-entries 5000
treemacs-missing-project-action 'ask
treemacs-move-forward-on-expand nil
treemacs-no-png-images nil
treemacs-no-delete-other-windows t
treemacs-project-follow-cleanup nil
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
treemacs-position 'left
treemacs-read-string-input 'from-child-frame
treemacs-recenter-distance 0.1
treemacs-recenter-after-file-follow nil
treemacs-recenter-after-tag-follow nil
treemacs-recenter-after-project-jump 'always
treemacs-recenter-after-project-expand 'on-distance
treemacs-show-cursor nil
treemacs-show-hidden-files t
treemacs-silent-filewatch nil
treemacs-silent-refresh nil
treemacs-sorting 'alphabetic-asc
treemacs-space-between-root-nodes t
treemacs-tag-follow-cleanup t
treemacs-tag-follow-delay 1.5
treemacs-user-mode-line-format nil
treemacs-user-header-line-format nil
treemacs-width 35
treemacs-workspace-switch-cleanup nil)
;; The default width and height of the icons is 22 pixels. If you are
;; using a Hi-DPI display, uncomment this to double the icon size.
;;(treemacs-resize-icons 44)
(treemacs-follow-mode t)
(treemacs-filewatch-mode t)
(treemacs-load-theme 'all-the-icons)
(treemacs-fringe-indicator-mode 'always)
(pcase (cons (not (null (executable-find "git")))
(not (null treemacs-python-executable)))
(`(t . t)
(treemacs-git-mode 'deferred))
(`(t . _)
(treemacs-git-mode 'simple))))
:bind
(:map global-map
("M-0" . treemacs-select-window)
("C-x t 1" . treemacs-delete-other-windows)
("C-x t t" . treemacs)
("C-x t B" . treemacs-bookmark)
("C-x t C-t" . treemacs-find-file)
("C-x t M-t" . treemacs-find-tag)))
(use-package treemacs-evil
:after (treemacs evil)
:ensure t)
(use-package treemacs-projectile
:after (treemacs projectile)
:ensure t)
(use-package treemacs-icons-dired
:after (treemacs dired)
:ensure t
:config (treemacs-icons-dired-mode))
(use-package treemacs-magit
:after (treemacs magit)
:ensure t)
(use-package treemacs-persp ;;treemacs-perspective if you use perspective.el vs. persp-mode
:after (treemacs persp-mode) ;;or perspective vs. persp-mode
:ensure t
:config (treemacs-set-scope-type 'Perspectives))
(use-package neotree
:ensure t
:init
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)))
(org-babel-do-load-languages
'org-babel-load-languages
'((python . t)))
(find-file "~/.emacs.d/startup.org")
(use-package projectile
:diminish projectile-mode
:config (projectile-mode)
:init
(setq projectile-switch-project-action #'projectile-deired))
(use-package counsel-projectile
:config (counsel-projectile-mode))
(use-package magit)
(use-package evil-magit
:after magit)
(defun org-mode-setup()
(org-indend-mode)
(variable-pitch-mode 1)
(auto-fill-mode 0)
(visual-line-mode 1)
(setq evil-auto indent 1))
(use-package
org
:config)
(use-package
org-bullets
:after
org
:
hook
(org-mode .org-bullets-mode))
(use-package rustic
:ensure t
:init
(setq rustic-lsp-server 'rls))
(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)

View file

@ -2,19 +2,17 @@
#+author O. George #+author O. George
#+BABEL: :cache no #+BABEL: :cache no
#+PROPERTY: header-args:emacs-lisp :tangle init.el #+PROPERTY: header-args:emacs-lisp :tangle init.el
[[https://github.com/horhik/dotfiles][░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░▀░█▀▀░░░░ ░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░▀░█▀▀░░░░
░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░▀▀█░░░░ ░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░▀▀█░░░░
░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░░░▀▀▀░░░░ ░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░░░▀▀▀░░░░
░░█▀▄░█▀█░▀█▀░█▀▀░▀█▀░█░░░█▀▀░█▀▀░░ ░░█▀▄░█▀█░▀█▀░█▀▀░▀█▀░█░░░█▀▀░█▀▀░░
░░█░█░█░█░░█░░█▀▀░░█░░█░░░█▀▀░▀▀█░░ ░░█░█░█░█░░█░░█▀▀░░█░░█░░░█▀▀░▀▀█░░
░░▀▀░░▀▀▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░░ ░░▀▀░░▀▀▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]]
* Help info * Help info
~C-z~ to toggle vim/emacs mode ~C-z~ to toggle vim/emacs mode
* UI * UI
** Cleaning up UI ** Cleaning up UI
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -26,43 +24,53 @@
(tooltip-mode -1) (tooltip-mode -1)
(set-fringe-mode 10) (set-fringe-mode 10)
(visual-line-mode t) (visual-line-mode t)
(visual-line-mode 1)
#+end_src #+end_src
#+RESULTS:
: t
** Initializing packages ** Initializing packages
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/")) '("melpa" . "https://melpa.org/packages/")
'("org" . "https://orgmode.org/elpa/"))
(package-initialize) (package-initialize)
(unless package-archive-contents (unless package-archive-contents
(package-refresh-contents)) (package-refresh-contents))
(defvar package-list (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)) '( 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))
(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)))
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables 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.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-safe-themes '(custom-safe-themes
'("75b8719c741c6d7afa290e0bb394d809f0cc62045b93e1d66cd646907f8e6d43" "7661b762556018a44a29477b84757994d8386d6edee909409fabe0631952dad9" default)) '("6b5c518d1c250a8ce17463b7e435e9e20faa84f3f7defba8b579d4f5925f60c1" "75b8719c741c6d7afa290e0bb394d809f0cc62045b93e1d66cd646907f8e6d43" "7661b762556018a44a29477b84757994d8386d6edee909409fabe0631952dad9" default))
'(package-selected-packages '(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))) '(rls lsp highlight-parentheses 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
;; 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.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
) )
;; Setting up use-package ;; Setting up use-package
(require 'use-package) (require 'use-package)
(setq use-package-always-ensure t) (setq use-package-always-ensure t)
#+end_src #+end_src
#+RESULTS:
: t
** Fonts ** Fonts
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Default fonts ;; Default fonts
@ -80,11 +88,16 @@
(font-spec :name "Twemoji" :size 14)) (font-spec :name "Twemoji" :size 14))
#+end_src #+end_src
#+RESULTS:
*** Theme *** Theme
#+begin_src emacs-lisp #+begin_src emacs-lisp
(load-theme 'gruvbox-dark-hard) (load-theme 'doom-gruvbox)
#+end_src #+end_src
#+RESULTS:
: t
** Emojies ** Emojies
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Emojies ;; Emojies
@ -93,15 +106,22 @@
:config :config
(setq emojify-emoji-set "twemoji-v2") (setq emojify-emoji-set "twemoji-v2")
(setq emojify-set-emoji-styles 'unicode) (setq emojify-set-emoji-styles 'unicode)
(setq emojify-display-style 'unicode) (setq emojify-display-style 'unicode))
)
#+end_src #+end_src
#+RESULTS:
| org-roam-mode | global-emojify-mode | x-wm-set-size-hint | tramp-register-archive-file-name-handler | magit-maybe-define-global-key-bindings |
** Modeline (bottom bar) ** Modeline (bottom bar)
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; mode line ;; mode line
(require 'doom-modeline) (require 'doom-modeline)
(doom-modeline-mode 1) (doom-modeline-mode 1)
#+end_src #+end_src
#+RESULTS:
: t
** Line numbers ** Line numbers
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Line numbers ;; Line numbers
@ -119,6 +139,9 @@
(dolist (mode '(org-mode-hook)) (dolist (mode '(org-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0)))) (add-hook mode (lambda () (display-line-numbers-mode 0))))
#+end_src #+end_src
#+RESULTS:
* Evil mode * Evil mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package evil (use-package evil
@ -130,14 +153,12 @@
(evil-mode 1) (evil-mode 1)
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state) (define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
(evil-global-set-key 'motion "j" 'evil-next-visual-line) (evil-global-set-key 'motion "j" 'evil-next-visual-line)
(evil-global-set-key 'motion "k" 'evil-previous-visual-line) (evil-global-set-key 'motion "k" 'evil-previous-visual-line))
)
(use-package undo-tree (use-package undo-tree
:after evil :after evil
:init :init
(global-undo-tree-mode) (global-undo-tree-mode)
(evil-set-undo-system 'undo-tree) (evil-set-undo-system 'undo-tree))
)
(use-package evil-mc (use-package evil-mc
:after evil :after evil
:config :config
@ -147,38 +168,42 @@
:map evil-normal-state-map :map evil-normal-state-map
("SPC m u" . evil-mc-undo-all-cursors) ("SPC m u" . evil-mc-undo-all-cursors)
:map evil-visual-state-map :map evil-visual-state-map
("SPC m a" . evil-mc-make-cursor-in-visual-selection-beg) ("SPC m a" . evil-mc-make-cursor-in-visual-selection-beg)))
)
)
(use-package evil-collection (use-package evil-collection
:ensure t :ensure t
:after evil :after evil
:config :config
(evil-collection-init)) (evil-collection-init))
#+end_src #+end_src
#+RESULTS:
: t
* Completition * Completition
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package counsel) (use-package counsel)
(use-package ivy (use-package ivy
:diminish :diminish
:bind ( :bind (
("M-x" . counsel-M-x) ("M-x" . counsel-M-x)
("C-s" . swiper) ("C-s" . swiper)
:map ivy-minibuffer-map :map ivy-minibuffer-map
("TAB" . ivy-alt-done) ("TAB" . ivy-alt-done)
("C-f" . ivy-alt-done) ("C-f" . ivy-alt-done)
("C-l" . ivy-alt-done) ("C-l" . ivy-alt-done)
("C-j" . ivy-next-line) ("C-j" . ivy-next-line)
("C-k" . ivy-previous-line) ("C-k" . ivy-previous-line)
:map ivy-switch-buffer-map :map ivy-switch-buffer-map
("C-k" . ivy-previous-line) ("C-k" . ivy-previous-line)
("C-l" . ivy-done) ("C-l" . ivy-done)
("C-d" . ivy-switch-buffer-kill) ("C-d" . ivy-switch-buffer-kill)
:map ivy-reverse-i-search-map :map ivy-reverse-i-search-map
("C-k" . ivy-previous-line) ("C-k" . ivy-previous-line)
("C-d" . ivy-reverse-i-search-kill)) ("C-d" . ivy-reverse-i-search-kill))
:init :init
(ivy-mode 1)) (ivy-mode 1))
(use-package smex
:after counsel)
#+end_src #+end_src
#+RESULTS: #+RESULTS:
@ -186,41 +211,62 @@
* Keybindings * Keybindings
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun add-to-map(keys func) (defun add-to-map(keys func)
"Add a keybinding in evil mode from keys to func." "Add a keybinding in evil mode from keys to func."
(define-key evil-normal-state-map (kbd keys) func) (define-key evil-normal-state-map (kbd keys) func)
(define-key evil-motion-state-map (kbd keys) func)) (define-key evil-motion-state-map (kbd keys) func))
(add-to-map "<SPC>" nil) (add-to-map "<SPC>" nil)
(add-to-map "<SPC> <SPC>" 'counsel-M-x) (add-to-map "<SPC> s" 'save-buffer)
;; (add-to-map "<SPC> f" 'lusty-file-explorer)
;; (add-to-map "<SPC> b" 'lusty-buffer-explorer)
(add-to-map "<SPC> o" 'treemacs)
(add-to-map "<SPC> s" 'save-buffer)
(defun open-file (file) (defun open-file (file)
"just more shortest function for opening the file" "just more shortest function for opening the file"
(interactive) (interactive)
((lambda (file) (interactive) ((lambda (file) (interactive)
(find-file (expand-file-name (format "%s" file)))) file ) ) (find-file (expand-file-name (format "%s" file)))) file ) )
(general-evil-setup) (general-evil-setup)
(general-nmap (general-define-key
:prefix "SPC" :prefix "SPC"
;; dotfiles editing config :keymaps 'normal
"f f" '(counsel-find-file :which-key "find-file") "o" '(treemacs :which-key "treemacs")
"f r" '(counsel-buffer-or-recentf :which-key "recent files") "SPC" '(counsel-M-x :which-key "M-x")
;; org-roam
"b b" '(counsel-switch-buffer :which-key "switch buff") ;; dotfiles editing config
"f f" '(counsel-find-file :which-key "find-file")
"f r" '(counsel-buffer-or-recentf :which-key "recent files")
;; switch buffer
"b b" '(counsel-switch-buffer :which-key "switch buff")
;; Theme
"h" '(counsel-load-theme :which-key "switch theme")
;; Org-roam keymap
"r d" '(org-roam-toady :which-key "roam today")
"r t a" '(org-roam-tag-add :which-key "roam add tag")
"r t d" '(org-roam-tag-delete :which-key "roam delete tag")
"r a a" '(org-roam-alias-add :which-key "roam add alias")
"r f f" '(org-roam-find-file :which-key "roam findgfile ")
"r g" '(org-roam-graph-show :which-key "roam graph ")
"r b b" '(org-roam-buffer-toggle-display :which-key "roam buffer toggle ")
"r b s" '(org-roam-buffer-activate :which-key "roam buffer show ")
"r b h" '(org-roam-buffer-deactivate :which-key "roam buffer hide ")
"f e" '(lambda() (interactive) (find-file "~/.emacs.d/config.org") :which-key "config.org") ;; Bind keymaps
"f v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" )) "p" '(:keymap projectile-command-map :package projectile)
"f d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" )) "w" '(:keymap evil-window-map :package evil)
"f a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty")) "t" '(:keymap tab-bar-map :package tab-bar)
"f b" '(lambda() (interactive) (find-file "~/Brain" :which-key "my brain"))) ;; Edit common files
"f e" '(lambda() (interactive) (find-file "~/.emacs.d/config.org") :which-key "config.org")
"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 a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
"f b" '(lambda() (interactive) (find-file "~/Brain" :which-key "my brain")))
#+end_src #+end_src
#+RESULTS:
* Features * Features
** Org roam ** Org roam
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -250,19 +296,28 @@
("C-c o t" . org-roam-dailies-capture-today)) ("C-c o t" . org-roam-dailies-capture-today))
:map org-mode-map :map org-mode-map
(("C-c o i" . org-roam-insert)) (("C-c o i" . org-roam-insert))
(("C-c o I" . org-roam-insert-immediate))) (("C-c o I" . org-roam-insert-immediate))))
)
#+end_src #+end_src
#+RESULTS:
: org-roam-insert-immediate
** Org roam protocol ** Org roam protocol
#+begin_src emacs-lisp #+begin_src emacs-lisp
(require 'org-roam-protocol) (require 'org-roam-protocol)
#+end_src #+end_src
#+RESULTS:
: org-roam-protocol
** Interaction log ** Interaction log
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package interaction-log (use-package interaction-log
:ensure t) :ensure t)
#+end_src #+end_src
#+RESULTS:
** Rainbow brakets ** Rainbow brakets
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package highlight-parentheses (use-package highlight-parentheses
@ -273,6 +328,10 @@
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)) :hook (prog-mode . rainbow-delimiters-mode))
#+end_src #+end_src
#+RESULTS:
| rainbow-delimiters-mode | (lambda nil (display-line-numbers-mode 1) (setq display-line-numbers 'relative)) |
** Which key (keybindings autocompletition ) ** Which key (keybindings autocompletition )
#+begin_src emacs-lisp #+begin_src emacs-lisp
;;Which key ;;Which key
@ -286,131 +345,222 @@
:init :init
(ivy-rich-mode 1)) (ivy-rich-mode 1))
#+end_src #+end_src
#+RESULTS:
** Treemacs (file tree) ** Treemacs (file tree)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package all-the-icons) (use-package all-the-icons)
(use-package treemacs-all-the-icons) (use-package treemacs-all-the-icons)
(use-package treemacs (use-package treemacs
:after all-the-icons :after all-the-icons
:ensure t :ensure t
:defer t :defer t
:init :init
(with-eval-after-load 'winum (with-eval-after-load 'winum
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window)) (define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
:config :config
(progn (progn
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0) (setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
treemacs-deferred-git-apply-delay 0.5 treemacs-deferred-git-apply-delay 0.5
treemacs-directory-name-transformer #'identity treemacs-directory-name-transformer #'identity
treemacs-display-in-side-window t treemacs-display-in-side-window t
treemacs-eldoc-display t treemacs-eldoc-display t
treemacs-file-event-delay 5000 treemacs-file-event-delay 5000
treemacs-file-extension-regex treemacs-last-period-regex-value treemacs-file-extension-regex treemacs-last-period-regex-value
treemacs-file-follow-delay 0.2 treemacs-file-follow-delay 0.2
treemacs-file-name-transformer #'identity treemacs-file-name-transformer #'identity
treemacs-follow-after-init t treemacs-follow-after-init t
treemacs-git-command-pipe "" treemacs-git-command-pipe ""
treemacs-goto-tag-strategy 'refetch-index treemacs-goto-tag-strategy 'refetch-index
treemacs-indentation 2 treemacs-indentation 2
treemacs-indentation-string " " treemacs-indentation-string " "
treemacs-is-never-other-window nil treemacs-is-never-other-window nil
treemacs-max-git-entries 5000 treemacs-max-git-entries 5000
treemacs-missing-project-action 'ask treemacs-missing-project-action 'ask
treemacs-move-forward-on-expand nil treemacs-move-forward-on-expand nil
treemacs-no-png-images nil treemacs-no-png-images nil
treemacs-no-delete-other-windows t treemacs-no-delete-other-windows t
treemacs-project-follow-cleanup nil treemacs-project-follow-cleanup nil
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory) treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
treemacs-position 'left treemacs-position 'left
treemacs-read-string-input 'from-child-frame treemacs-read-string-input 'from-child-frame
treemacs-recenter-distance 0.1 treemacs-recenter-distance 0.1
treemacs-recenter-after-file-follow nil treemacs-recenter-after-file-follow nil
treemacs-recenter-after-tag-follow nil treemacs-recenter-after-tag-follow nil
treemacs-recenter-after-project-jump 'always treemacs-recenter-after-project-jump 'always
treemacs-recenter-after-project-expand 'on-distance treemacs-recenter-after-project-expand 'on-distance
treemacs-show-cursor nil treemacs-show-cursor nil
treemacs-show-hidden-files t treemacs-show-hidden-files t
treemacs-silent-filewatch nil treemacs-silent-filewatch nil
treemacs-silent-refresh nil treemacs-silent-refresh nil
treemacs-sorting 'alphabetic-asc treemacs-sorting 'alphabetic-asc
treemacs-space-between-root-nodes t treemacs-space-between-root-nodes t
treemacs-tag-follow-cleanup t treemacs-tag-follow-cleanup t
treemacs-tag-follow-delay 1.5 treemacs-tag-follow-delay 1.5
treemacs-user-mode-line-format nil treemacs-user-mode-line-format nil
treemacs-user-header-line-format nil treemacs-user-header-line-format nil
treemacs-width 35 treemacs-width 35
treemacs-workspace-switch-cleanup nil) treemacs-workspace-switch-cleanup nil)
;; The default width and height of the icons is 22 pixels. If you are ;; The default width and height of the icons is 22 pixels. If you are
;; using a Hi-DPI display, uncomment this to double the icon size. ;; using a Hi-DPI display, uncomment this to double the icon size.
;;(treemacs-resize-icons 44) ;;(treemacs-resize-icons 44)
(treemacs-follow-mode t) (treemacs-follow-mode t)
(treemacs-filewatch-mode t) (treemacs-filewatch-mode t)
(treemacs-load-theme 'all-the-icons) (treemacs-load-theme 'all-the-icons)
(treemacs-fringe-indicator-mode 'always) (treemacs-fringe-indicator-mode 'always)
(pcase (cons (not (null (executable-find "git"))) (pcase (cons (not (null (executable-find "git")))
(not (null treemacs-python-executable))) (not (null treemacs-python-executable)))
(`(t . t) (`(t . t)
(treemacs-git-mode 'deferred)) (treemacs-git-mode 'deferred))
(`(t . _) (`(t . _)
(treemacs-git-mode 'simple)))) (treemacs-git-mode 'simple))))
:bind :bind
(:map global-map (:map global-map
("M-0" . treemacs-select-window) ("M-0" . treemacs-select-window)
("C-x t 1" . treemacs-delete-other-windows) ("C-x t 1" . treemacs-delete-other-windows)
("C-x t t" . treemacs) ("C-o" . treemacs)
("C-x t B" . treemacs-bookmark) ("C-x t B" . treemacs-bookmark)
("C-x t C-t" . treemacs-find-file) ("C-x t C-t" . treemacs-find-file)
("C-x t M-t" . treemacs-find-tag))) ("C-x t M-t" . treemacs-find-tag)))
(use-package treemacs-evil (use-package treemacs-evil
:after (treemacs evil) :after (treemacs evil)
:ensure t) :ensure t
(use-package treemacs-projectile )
:after (treemacs projectile)
:ensure t)
(use-package treemacs-icons-dired (use-package treemacs-projectile
:after (treemacs dired) :after (treemacs projectile)
:ensure t :ensure t)
:config (treemacs-icons-dired-mode))
(use-package treemacs-magit (use-package treemacs-icons-dired
:after (treemacs magit) :after (treemacs dired)
:ensure t) :ensure t
:config (treemacs-icons-dired-mode))
(use-package treemacs-persp ;;treemacs-perspective if you use perspective.el vs. persp-mode (use-package treemacs-magit
:after (treemacs persp-mode) ;;or perspective vs. persp-mode :after (treemacs magit)
:ensure t :ensure t)
:config (treemacs-set-scope-type 'Perspectives))
(use-package neotree (use-package treemacs-persp ;;treemacs-perspective if you use perspective.el vs. persp-mode
:ensure t :after (treemacs persp-mode) ;;or perspective vs. persp-mode
:init :ensure t
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)) :config (treemacs-set-scope-type 'Perspectives))
)
(use-package neotree
:ensure t
:init
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)))
#+end_src #+end_src
#+RESULTS:
** Literate programming ** Literate programming
#+begin_src emacs-lisp #+begin_src emacs-lisp
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
'((python . t))) '((python . t)))
#+end_src #+end_src
** StartPage
#+begin_src emacs-lisp
(find-file "~/.emacs.d/startup.org")
#+end_src
#+RESULTS:
** Projects
#+begin_src emacs-lisp
(use-package projectile
:diminish projectile-mode
:config (projectile-mode)
:init
(setq projectile-switch-project-action #'projectile-deired))
(use-package counsel-projectile
:config (counsel-projectile-mode))
#+end_src
** Magit
#+begin_src emacs-lisp
(use-package magit)
#+end_src
#+RESULTS:
: t
** Workspaces
#+begin_src emacs-lisp
(use-package workgroups2)
#+end_src
* Org mode
#+begin_src emacs-lisp
(defun org-mode-setup()
(org-indend-mode)
(variable-pitch-mode 1)
(auto-fill-mode 0)
(visual-line-mode 1)
(setq evil-auto indent 1))
(use-package
org
:config)
(use-package
org-bullets
:after org
:hook
(org-mode . org-bullets-mode))
(set-face-attribute 'org-document-title nil :font "hack" :weight 'bold :height 1.3)
(dolist (face '((org-level-1 . 1.3)
(org-level-2 . 1.2)
(org-level-3 . 1.05)
(org-level-4 . 1.0)
(org-level-5 . 1.1)
(org-level-6 . 1.1)
(org-level-7 . 1.1)
(org-level-8 . 1.1)))
(set-face-attribute (car face) nil :font "hack" :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-table nil :inherit 'fixed-pitch)
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
;; Get rid of the background on column views
(set-face-attribute 'org-column nil :background nil)
(set-face-attribute 'org-column-title nil :background nil)
(setq org-src-fontify-natively t)
(defun my/visual-fill ()
(setq visual-fill-column-width 140
visual-fill-column-center-text t)
(visual-fill-column-mode 1))
(use-package visual-fill-column
:defer t
:hook (org-mode . my/visual-fill))
#+end_src
#+RESULTS:
| my/visual-fill | org-bullets-mode | #[0 \301\211\207 [imenu-create-index-function org-imenu-get-tree] 2] | #[0 \300\301\302\303\304$\207 [add-hook change-major-mode-hook org-show-all append local] 5] | #[0 \300\301\302\303\304$\207 [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] | org-babel-result-hide-spec | org-babel-hide-all-hashes | (lambda nil (display-line-numbers-mode 0)) |
** Templates ~(<lang + TAB)~
#+begin_src emacs-lisp
(require 'org-tempo)
(add-to-list 'org-structure-template-alist '("sh" . "src sh"))
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
(add-to-list 'org-structure-template-alist '("sc" . "src scheme"))
(add-to-list 'org-structure-template-alist '("ts" . "src typescript"))
(add-to-list 'org-structure-template-alist '("py" . "src python"))
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
(add-to-list 'org-structure-template-alist '("json" . "src json"))
#+end_src
* Languages * Languages
** Rust ** Rust
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rustic (use-package rustic
:ensure t :ensure t
:init :init
(setq rustic-lsp-server 'rls) (setq rustic-lsp-server 'rls))
)
#+end_src #+end_src
* Themes * Themes
** Treemacs ** Treemacs
@ -471,8 +621,13 @@
(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" :fallback "🗃️" :extensions ("py" "python"))))
)
)
(treemacs-load-theme 'Material) (treemacs-load-theme 'Material)
#+end_src #+end_src
* StartPage
#+begin_src emacs-lisp
(find-file "~/.emacs.d/startup.org")
#+end_src

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -1 +1 @@
<svg fill="#68387D" version="1.1" xmlns="http://www.w3.org/2000/svg" width="512" height="512" transform="scale(0.7)"><path d="M207.3001251,507.2270203C90.6534042,484.2805481,2.5893788,380.5510559,2.5893788,255.999649C2.5893788,114.6150208,116.0450287,0,256,0c107.9807739,0,200.128418,68.2562332,236.6234741,164.3653259c-14.6213379,4.6752014-46.3552856,26.7032471-113.530365,108.3215942l-0.2137146,2.0274963c-29.8545227,34.4298401-61.5598145,73.1584167-82.9173889,99.6011658c-9.0661621-2.0700989-18.8600464-4.3092346-29.6107788-6.8626404c-68.7933197-17.2955933-89.3518982-33.8578186-99.622818-45.8440552c-9.7373199-12.0127563,1.8277588-36.960907,57.260376-49.1999512c28.0665588-6.8298035,132.5971527-8.0848694,132.5971527-8.0848694c-29.9893188-23.8097076-86.290741-66.4368591-97.7992554-75.5023041c-10.0928192-7.9507599-26.3582306-20.1520996-28.106369-31.0550842c-2.358551-10.6138306,14.3482666-15.7241364,23.1930084-16.3135986c28.4995728-1.9653473,67.416748,1.3758698,102.0093079,8.2552795c17.3884583,3.4578552,20.4412537,2.9480133,20.4412537,2.9480133c24.7651367,1.1796265,44.0274658-11.7927704,43.0447998-39.1134186c-0.1969604-27.7138596-27.9052429-49.9360733-58.571991-50.9068718c-28.8795166-0.9135284-100.0446777,4.127636-100.0446777,4.127636c82.9446411,17.100029,96.5043945,21.4637375,100.8303833,31.4482956c2.5555115,5.8967361-4.2680054,11.7592392-27.1236877,10.6138382c-24.8824768-1.2473755-75.8682861-7.2726135-75.8682861-7.2726135c-48.5483246-7.4688644-82.3544617-14.5445175-97.0959473,4.7171097c-9.6304626,12.5840607,1.375885,27.9101181,5.6997833,36.9518204c19.2623291,33.6098785,52.5697937,56.668808,73.7066803,72.9202576c7.9528656,6.1146393,32.2340088,19.6548309,32.2340088,19.6548309c-75.4750671-20.6375122-135.6199036-9.0417023-173.7506409,11.0070496c-43.8305206,25.9440765-36.3330193,69.7263947,33.2173767,110.6577911c41.0787659,24.1756897,61.5325928,35.7889404,128.7914734,44.0470276c4.1486206,0.6614075,7.8474121,1.2732239,11.2829285,1.8570862c-1.2969666,1.6343079-8.6121826,12.0791016-11.7305908,16.6628113c-5.8220062,0.339447-10.834549,0.6027527-13.8852234,0.8129578c-32.2444916,2.2237549-115.633316,2.7796936-116.0502777,2.7796936c0,0,22.5365143,6.5434875,52.5348816,10.2842102c8.9306641,1.1139526,36.2792511,4.2638245,64.2180023,5.8031311C228.1513367,469.5314026,214.1774292,493.2761536,207.3001251,507.2270203z M501.7287292,193.3174744c-21.6180725,40.3684692-84.832428,109.66745-84.832428,109.66745l-2.4416809-0.7536011c-25.6060486,30.9042358-51.3985596,60.4263-71.9054565,83.4342346c17.5449219,4.9741211,31.0264587,10.3505249,42.8157043,18.5750732c9.6905518,6.7599792,6.1013794,13.769989,5.8967285,15.9211121c-7.8599548,9.0186462-21.9840393,13.5387878-46.9140015,17.0797729c-14.9140015,2.1182861-37.4009094,2.8921204-52.1395874,3.1742859c-16.6509399,16.5867004-51.9349518,50.8845215-72.9468079,68.8729553C231.2599945,511.049469,243.5186005,512,256,512c139.9549561,0,253.410614-114.6150208,253.410614-256.0003662C509.410614,234.3710938,506.7279968,213.3787842,501.7287292,193.3174744z"/></svg> <svg fill="#68387D" version="1.1" xmlns="http://www.w3.org/2000/svg" width="512px" height="512px"><path d="M207.3001251,507.2270203C90.6534042,484.2805481,2.5893788,380.5510559,2.5893788,255.999649C2.5893788,114.6150208,116.0450287,0,256,0c107.9807739,0,200.128418,68.2562332,236.6234741,164.3653259c-14.6213379,4.6752014-46.3552856,26.7032471-113.530365,108.3215942l-0.2137146,2.0274963c-29.8545227,34.4298401-61.5598145,73.1584167-82.9173889,99.6011658c-9.0661621-2.0700989-18.8600464-4.3092346-29.6107788-6.8626404c-68.7933197-17.2955933-89.3518982-33.8578186-99.622818-45.8440552c-9.7373199-12.0127563,1.8277588-36.960907,57.260376-49.1999512c28.0665588-6.8298035,132.5971527-8.0848694,132.5971527-8.0848694c-29.9893188-23.8097076-86.290741-66.4368591-97.7992554-75.5023041c-10.0928192-7.9507599-26.3582306-20.1520996-28.106369-31.0550842c-2.358551-10.6138306,14.3482666-15.7241364,23.1930084-16.3135986c28.4995728-1.9653473,67.416748,1.3758698,102.0093079,8.2552795c17.3884583,3.4578552,20.4412537,2.9480133,20.4412537,2.9480133c24.7651367,1.1796265,44.0274658-11.7927704,43.0447998-39.1134186c-0.1969604-27.7138596-27.9052429-49.9360733-58.571991-50.9068718c-28.8795166-0.9135284-100.0446777,4.127636-100.0446777,4.127636c82.9446411,17.100029,96.5043945,21.4637375,100.8303833,31.4482956c2.5555115,5.8967361-4.2680054,11.7592392-27.1236877,10.6138382c-24.8824768-1.2473755-75.8682861-7.2726135-75.8682861-7.2726135c-48.5483246-7.4688644-82.3544617-14.5445175-97.0959473,4.7171097c-9.6304626,12.5840607,1.375885,27.9101181,5.6997833,36.9518204c19.2623291,33.6098785,52.5697937,56.668808,73.7066803,72.9202576c7.9528656,6.1146393,32.2340088,19.6548309,32.2340088,19.6548309c-75.4750671-20.6375122-135.6199036-9.0417023-173.7506409,11.0070496c-43.8305206,25.9440765-36.3330193,69.7263947,33.2173767,110.6577911c41.0787659,24.1756897,61.5325928,35.7889404,128.7914734,44.0470276c4.1486206,0.6614075,7.8474121,1.2732239,11.2829285,1.8570862c-1.2969666,1.6343079-8.6121826,12.0791016-11.7305908,16.6628113c-5.8220062,0.339447-10.834549,0.6027527-13.8852234,0.8129578c-32.2444916,2.2237549-115.633316,2.7796936-116.0502777,2.7796936c0,0,22.5365143,6.5434875,52.5348816,10.2842102c8.9306641,1.1139526,36.2792511,4.2638245,64.2180023,5.8031311C228.1513367,469.5314026,214.1774292,493.2761536,207.3001251,507.2270203z M501.7287292,193.3174744c-21.6180725,40.3684692-84.832428,109.66745-84.832428,109.66745l-2.4416809-0.7536011c-25.6060486,30.9042358-51.3985596,60.4263-71.9054565,83.4342346c17.5449219,4.9741211,31.0264587,10.3505249,42.8157043,18.5750732c9.6905518,6.7599792,6.1013794,13.769989,5.8967285,15.9211121c-7.8599548,9.0186462-21.9840393,13.5387878-46.9140015,17.0797729c-14.9140015,2.1182861-37.4009094,2.8921204-52.1395874,3.1742859c-16.6509399,16.5867004-51.9349518,50.8845215-72.9468079,68.8729553C231.2599945,511.049469,243.5186005,512,256,512c139.9549561,0,253.410614-114.6150208,253.410614-256.0003662C509.410614,234.3710938,506.7279968,213.3787842,501.7287292,193.3174744z"/></svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -5,9 +5,12 @@
(tool-bar-mode -1) (tool-bar-mode -1)
(tooltip-mode -1) (tooltip-mode -1)
(set-fringe-mode 10) (set-fringe-mode 10)
(visual-line-mode t)
(visual-line-mode 1)
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/")) '("melpa" . "https://melpa.org/packages/")
'("org" . "https://orgmode.org/elpa/"))
(package-initialize) (package-initialize)
@ -54,7 +57,7 @@
(set-fontset-font "fontset-default" 'unicode (set-fontset-font "fontset-default" 'unicode
(font-spec :name "Twemoji" :size 14)) (font-spec :name "Twemoji" :size 14))
(load-theme 'gruvbox-dark-hard) (load-theme 'doom-gruvbox)
;; Emojies ;; Emojies
(use-package emojify (use-package emojify
@ -62,8 +65,7 @@
:config :config
(setq emojify-emoji-set "twemoji-v2") (setq emojify-emoji-set "twemoji-v2")
(setq emojify-set-emoji-styles 'unicode) (setq emojify-set-emoji-styles 'unicode)
(setq emojify-display-style 'unicode) (setq emojify-display-style 'unicode))
)
;; mode line ;; mode line
(require 'doom-modeline) (require 'doom-modeline)
@ -89,21 +91,28 @@
:init :init
(setq evil-want-integration t) ;; This is optional since it's already set to t by default. (setq evil-want-integration t) ;; This is optional since it's already set to t by default.
(setq evil-want-keybinding nil) (setq evil-want-keybinding nil)
(evil-mode) :config
) (evil-mode 1)
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
(evil-global-set-key 'motion "j" 'evil-next-visual-line)
(evil-global-set-key 'motion "k" 'evil-previous-visual-line))
(use-package undo-tree (use-package undo-tree
:after evil :after evil
:init :init
(global-undo-tree-mode) (global-undo-tree-mode)
(evil-set-undo-system 'undo-tree) (evil-set-undo-system 'undo-tree))
)
(use-package evil-mc (use-package evil-mc
:after evil :after evil
:config :config
(evil-mc-mode 1) ;; enable (evil-mc-mode 1) ;; enable
(global-set-key (kbd "<secape>") 'keyboard-escape-quit) (global-set-key (kbd "<secape>") 'keyboard-escape-quit)
) :bind (
:map evil-normal-state-map
("SPC m u" . evil-mc-undo-all-cursors)
:map evil-visual-state-map
("SPC m a" . evil-mc-make-cursor-in-visual-selection-beg)))
(use-package evil-collection (use-package evil-collection
:ensure t
:after evil :after evil
:config :config
(evil-collection-init)) (evil-collection-init))
@ -129,6 +138,48 @@
("C-d" . ivy-reverse-i-search-kill)) ("C-d" . ivy-reverse-i-search-kill))
:init :init
(ivy-mode 1)) (ivy-mode 1))
(use-package smex
:after counsel)
(defun add-to-map(keys func)
"Add a keybinding in evil mode from keys to func."
(define-key evil-normal-state-map (kbd keys) func)
(define-key evil-motion-state-map (kbd keys) func))
(add-to-map "<SPC>" nil)
(add-to-map "<SPC> s" 'save-buffer)
(defun open-file (file)
"just more shortest function for opening the file"
(interactive)
((lambda (file) (interactive)
(find-file (expand-file-name (format "%s" file)))) file ) )
(general-evil-setup)
(general-define-key
:prefix "SPC"
:keymaps 'normal
"o" '(treemacs :which-key "treemacs")
"SPC" '(counsel-M-x :which-key "M-x")
;; dotfiles editing config
"f f" '(counsel-find-file :which-key "find-file")
"f r" '(counsel-buffer-or-recentf :which-key "recent files")
;; switch buffer
"b b" '(counsel-switch-buffer :which-key "switch buff")
;; Theme
"h" '(counsel-load-theme :which-key "switch theme")
;; Bind keymaps
"p" '(:keymap projectile-command-map :package projectile)
"w" '(:keymap evil-window-map :package evil)
"d" '(:keymap org-roam-dailies-map :package org-roam)
"t" '(:keymap tab-bar-map :package tab-bar)
;; Edit common files
"f e" '(lambda() (interactive) (find-file "~/.emacs.d/config.org") :which-key "config.org")
"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 a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
"f b" '(lambda() (interactive) (find-file "~/Brain" :which-key "my brain")))
(use-package org-roam (use-package org-roam
:ensure t :ensure t
@ -156,50 +207,18 @@
("C-c o t" . org-roam-dailies-capture-today)) ("C-c o t" . org-roam-dailies-capture-today))
:map org-mode-map :map org-mode-map
(("C-c o i" . org-roam-insert)) (("C-c o i" . org-roam-insert))
(("C-c o I" . org-roam-insert-immediate))) (("C-c o I" . org-roam-insert-immediate))))
)
(require 'org-roam-protocol) (require 'org-roam-protocol)
(defun add-to-map(keys func)
"Add a keybinding in evil mode from keys to func."
(define-key evil-normal-state-map (kbd keys) func)
(define-key evil-motion-state-map (kbd keys) func))
(add-to-map "<SPC>" nil)
(add-to-map "<SPC> <SPC>" 'counsel-M-x)
;; (add-to-map "<SPC> f" 'lusty-file-explorer)
(add-to-map "<SPC> b" 'lusty-buffer-explorer)
(add-to-map "<SPC> o" 'treemacs)
(add-to-map "<SPC> s" 'save-buffer)
(defun open-file (file)
"just more shortest function for opening the file"
(interactive)
((lambda (file) (interactive)
(find-file (expand-file-name (format "%s" file)))) file ) )
(general-evil-setup)
(general-nmap
:prefix "SPC"
;; dotfiles editing config
"f f" '(counsel-find-file :which-key "find-file")
"e e" '(lambda() (interactive) (find-file "~/.emacs.d/config.org") :which-key "config.org")
"e v" '(lambda() (interactive) (find-file "~/.config/nvim/init.vim" :which-key "neovim config" ))
"e d" '(lambda() (interactive) (find-file "~/dotfiles/home" :which-key "dotfiles dired" ))
"e a" '(lambda() (interactive) (find-file "~/.config/alacritty/alacritty.yml" :which-key "alacritty"))
"e b" '(lambda() (interactive) (find-file "~/Brain" :which-key "my brain"))
;; evil-mc
"c u" 'evil-mc-undo-all-cursors
"c j" 'evil-mc-make-and-goto-prev-cursor
"c k" 'evil-mc-make-and-goto-next-cursor
"c m" 'evil-mc-make-cursor-in-visual-selection-beg
)
(use-package interaction-log (use-package interaction-log
:ensure t) :ensure t)
(use-package highlight-parentheses
:ensure t
:init
(global-highlight-parentheses-mode t)
(show-paren-mode t)) ;
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)) :hook (prog-mode . rainbow-delimiters-mode))
@ -226,46 +245,46 @@
:config :config
(progn (progn
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0) (setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
treemacs-deferred-git-apply-delay 0.5 treemacs-deferred-git-apply-delay 0.5
treemacs-directory-name-transformer #'identity treemacs-directory-name-transformer #'identity
treemacs-display-in-side-window t treemacs-display-in-side-window t
treemacs-eldoc-display t treemacs-eldoc-display t
treemacs-file-event-delay 5000 treemacs-file-event-delay 5000
treemacs-file-extension-regex treemacs-last-period-regex-value treemacs-file-extension-regex treemacs-last-period-regex-value
treemacs-file-follow-delay 0.2 treemacs-file-follow-delay 0.2
treemacs-file-name-transformer #'identity treemacs-file-name-transformer #'identity
treemacs-follow-after-init t treemacs-follow-after-init t
treemacs-git-command-pipe "" treemacs-git-command-pipe ""
treemacs-goto-tag-strategy 'refetch-index treemacs-goto-tag-strategy 'refetch-index
treemacs-indentation 2 treemacs-indentation 2
treemacs-indentation-string " " treemacs-indentation-string " "
treemacs-is-never-other-window nil treemacs-is-never-other-window nil
treemacs-max-git-entries 5000 treemacs-max-git-entries 5000
treemacs-missing-project-action 'ask treemacs-missing-project-action 'ask
treemacs-move-forward-on-expand nil treemacs-move-forward-on-expand nil
treemacs-no-png-images nil treemacs-no-png-images nil
treemacs-no-delete-other-windows t treemacs-no-delete-other-windows t
treemacs-project-follow-cleanup nil treemacs-project-follow-cleanup nil
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory) treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
treemacs-position 'left treemacs-position 'left
treemacs-read-string-input 'from-child-frame treemacs-read-string-input 'from-child-frame
treemacs-recenter-distance 0.1 treemacs-recenter-distance 0.1
treemacs-recenter-after-file-follow nil treemacs-recenter-after-file-follow nil
treemacs-recenter-after-tag-follow nil treemacs-recenter-after-tag-follow nil
treemacs-recenter-after-project-jump 'always treemacs-recenter-after-project-jump 'always
treemacs-recenter-after-project-expand 'on-distance treemacs-recenter-after-project-expand 'on-distance
treemacs-show-cursor nil treemacs-show-cursor nil
treemacs-show-hidden-files t treemacs-show-hidden-files t
treemacs-silent-filewatch nil treemacs-silent-filewatch nil
treemacs-silent-refresh nil treemacs-silent-refresh nil
treemacs-sorting 'alphabetic-asc treemacs-sorting 'alphabetic-asc
treemacs-space-between-root-nodes t treemacs-space-between-root-nodes t
treemacs-tag-follow-cleanup t treemacs-tag-follow-cleanup t
treemacs-tag-follow-delay 1.5 treemacs-tag-follow-delay 1.5
treemacs-user-mode-line-format nil treemacs-user-mode-line-format nil
treemacs-user-header-line-format nil treemacs-user-header-line-format nil
treemacs-width 35 treemacs-width 35
treemacs-workspace-switch-cleanup nil) treemacs-workspace-switch-cleanup nil)
;; The default width and height of the icons is 22 pixels. If you are ;; The default width and height of the icons is 22 pixels. If you are
;; using a Hi-DPI display, uncomment this to double the icon size. ;; using a Hi-DPI display, uncomment this to double the icon size.
@ -276,23 +295,25 @@
(treemacs-load-theme 'all-the-icons) (treemacs-load-theme 'all-the-icons)
(treemacs-fringe-indicator-mode 'always) (treemacs-fringe-indicator-mode 'always)
(pcase (cons (not (null (executable-find "git"))) (pcase (cons (not (null (executable-find "git")))
(not (null treemacs-python-executable))) (not (null treemacs-python-executable)))
(`(t . t) (`(t . t)
(treemacs-git-mode 'deferred)) (treemacs-git-mode 'deferred))
(`(t . _) (`(t . _)
(treemacs-git-mode 'simple)))) (treemacs-git-mode 'simple))))
:bind :bind
(:map global-map (:map global-map
("M-0" . treemacs-select-window) ("M-0" . treemacs-select-window)
("C-x t 1" . treemacs-delete-other-windows) ("C-x t 1" . treemacs-delete-other-windows)
("C-x t t" . treemacs) ("C-o" . treemacs)
("C-x t B" . treemacs-bookmark) ("C-x t B" . treemacs-bookmark)
("C-x t C-t" . treemacs-find-file) ("C-x t C-t" . treemacs-find-file)
("C-x t M-t" . treemacs-find-tag))) ("C-x t M-t" . treemacs-find-tag)))
(use-package treemacs-evil (use-package treemacs-evil
:after (treemacs evil) :after (treemacs evil)
:ensure t) :ensure t
)
(use-package treemacs-projectile (use-package treemacs-projectile
:after (treemacs projectile) :after (treemacs projectile)
@ -315,14 +336,86 @@
(use-package neotree (use-package neotree
:ensure t :ensure t
:init :init
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)) (setq neo-theme (if (display-graphic-p) 'icons 'arrow)))
)
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
'((python . t))) '((python . t)))
(find-file "~/.emacs.d/startup.org") (use-package projectile
:diminish projectile-mode
:config (projectile-mode)
:init
(setq projectile-switch-project-action #'projectile-deired))
(use-package counsel-projectile
:config (counsel-projectile-mode))
(use-package magit)
(use-package workgroups2)
(defun org-mode-setup()
(org-indend-mode)
(variable-pitch-mode 1)
(auto-fill-mode 0)
(visual-line-mode 1)
(setq evil-auto indent 1))
(use-package
org
:config)
(use-package
org-bullets
:after org
:hook
(org-mode . org-bullets-mode))
(set-face-attribute 'org-document-title nil :font "hack" :weight 'bold :height 1.3)
(dolist (face '((org-level-1 . 1.3)
(org-level-2 . 1.2)
(org-level-3 . 1.05)
(org-level-4 . 1.0)
(org-level-5 . 1.1)
(org-level-6 . 1.1)
(org-level-7 . 1.1)
(org-level-8 . 1.1)))
(set-face-attribute (car face) nil :font "hack" :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-table nil :inherit 'fixed-pitch)
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
;; Get rid of the background on column views
(set-face-attribute 'org-column nil :background nil)
(set-face-attribute 'org-column-title nil :background nil)
(setq org-src-fontify-natively t)
(defun my/visual-fill ()
(setq visual-fill-column-width 140
visual-fill-column-center-text t)
(visual-fill-column-mode 1))
(use-package visual-fill-column
:defer t
:hook (org-mode . my/visual-fill))
(require 'org-tempo)
(add-to-list 'org-structure-template-alist '("sh" . "src sh"))
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
(add-to-list 'org-structure-template-alist '("sc" . "src scheme"))
(add-to-list 'org-structure-template-alist '("ts" . "src typescript"))
(add-to-list 'org-structure-template-alist '("py" . "src python"))
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
(add-to-list 'org-structure-template-alist '("json" . "src json"))
(use-package rustic
:ensure t
:init
(setq rustic-lsp-server 'rls))
(treemacs-create-theme "Material" (treemacs-create-theme "Material"
:icon-directory (treemacs-join-path treemacs-dir "/home/horhik/.emacs.d/icons") :icon-directory (treemacs-join-path treemacs-dir "/home/horhik/.emacs.d/icons")
@ -380,7 +473,8 @@
(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" :fallback "🗃️" :extensions ("py" "python"))))
)
)
(treemacs-load-theme 'Material) (treemacs-load-theme 'Material)
(find-file "~/.emacs.d/startup.org")