Updated config and added git ingnore
This commit is contained in:
parent
3389e10dd0
commit
82e7be1ab3
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
elpa/
|
||||
auto-save-list/
|
||||
projectile-bookmarks.eld
|
||||
recentf
|
||||
settings.el
|
||||
transient/
|
75
settings.org
75
settings.org
@ -6,16 +6,16 @@
|
||||
#+end_src
|
||||
** Themes
|
||||
#+begin_src emacs-lisp
|
||||
(use-package afternoon-theme
|
||||
:ensure t
|
||||
:config
|
||||
(load-theme 'afternoon t)
|
||||
)
|
||||
(use-package modus-themes
|
||||
:ensure t
|
||||
:config
|
||||
;;(load-theme 'modus-operandi t)
|
||||
)
|
||||
(use-package afternoon-theme
|
||||
:ensure t
|
||||
:config
|
||||
;;(load-theme 'afternoon t)
|
||||
)
|
||||
(use-package modus-themes
|
||||
:ensure t
|
||||
:config
|
||||
(load-theme 'modus-operandi t)
|
||||
)
|
||||
#+end_src
|
||||
** UI
|
||||
*** Split vertical defaul
|
||||
@ -34,9 +34,9 @@ Configure layout
|
||||
#+begin_src emacs-lisp
|
||||
(defun setup-dashboard-looks ()
|
||||
"Config ideas https://github.com/emacs-dashboard/emacs-dashboard"
|
||||
(evil-define-key 'normal 'dashboard-mode-map (kbd "r") 'dashboard-section-1)
|
||||
(evil-define-key 'normal 'dashboard-mode-map (kbd "J") 'dashboard-next-section)
|
||||
(evil-define-key 'normal 'dashboard-mode-map (kbd "K") 'dashboard-previous-section)
|
||||
(evil-define-key 'normal dashboard-mode-map (kbd "r") 'dashboard-section-1)
|
||||
(evil-define-key 'normal dashboard-mode-map (kbd "J") 'dashboard-next-section)
|
||||
(evil-define-key 'normal dashboard-mode-map (kbd "K") 'dashboard-previous-section)
|
||||
(setq dashboard-startup-banner "~/.emacs.d/OnePiece.gif")
|
||||
(setq dashboard-banner-logo-title "Lets get coddiinnngggg")
|
||||
(setq dashboard-show-shortcuts t)
|
||||
@ -75,9 +75,35 @@ Evil dashboard setup
|
||||
(evil-dashboard-setup)
|
||||
(dashboard-setup-startup-hook))
|
||||
#+end_src
|
||||
*** Ivy
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ivy
|
||||
:ensure t
|
||||
:config
|
||||
(ivy-mode))
|
||||
#+end_src
|
||||
Consel
|
||||
#+begin_src emacs-lisp
|
||||
(use-package counsel
|
||||
:ensure t
|
||||
:config
|
||||
(counsel-mode))
|
||||
#+end_src
|
||||
*** Which key
|
||||
#+begin_src emacs-lisp
|
||||
(use-package which-key
|
||||
:ensure t
|
||||
:config
|
||||
(which-key-mode))
|
||||
#+end_src
|
||||
|
||||
* Settings
|
||||
|
||||
** Backup files
|
||||
#+begin_src emacs-lisp
|
||||
(setq
|
||||
backup-directory-alist '(("." . "/tmp/"))
|
||||
auto-save-file-name-transforms '((".*" "/tmp/" t)))
|
||||
#+end_src
|
||||
* Evil
|
||||
** Base Functions
|
||||
#+begin_src emacs-lisp
|
||||
@ -95,11 +121,19 @@ Evil dashboard setup
|
||||
(advice-add #'evil-quit :around #'my-evil-quit)
|
||||
#+end_src
|
||||
** Base
|
||||
*** Configure
|
||||
#+begin_src emacs-lisp
|
||||
(defun setup-evil-mode ()
|
||||
(evil-define-key 'insert global-map (kbd "C-SPC") 'company-complete)
|
||||
)
|
||||
#+end_src
|
||||
*** Install
|
||||
#+begin_src emacs-lisp
|
||||
(use-package evil
|
||||
:ensure
|
||||
:after (evil-leader)
|
||||
:config
|
||||
(setup-evil-mode)
|
||||
(evil-mode 1))
|
||||
#+end_src
|
||||
** Leader
|
||||
@ -113,7 +147,9 @@ Evil dashboard setup
|
||||
(evil-leader/set-key
|
||||
"f" 'find-file
|
||||
"g" 'magit
|
||||
"cf" (lambda ()(interactive) (find-file (expand-file-name "~/.emacs.d/settings.org"))))
|
||||
"d" 'dired
|
||||
"c" '("config" . (keymap))
|
||||
"cf" '("config file" . (lambda ()(interactive) (find-file (expand-file-name "~/.emacs.d/settings.org")))))
|
||||
(evil-leader/set-key-for-mode 'org-mode "is" 'org-insert-structure-template)
|
||||
(evil-leader/set-key-for-mode 'org-mode "e" 'org-edit-src-code)
|
||||
)
|
||||
@ -140,3 +176,12 @@ Evil dashboard setup
|
||||
(use-package magit
|
||||
:ensure t)
|
||||
#+end_src
|
||||
Auto complete
|
||||
** Company
|
||||
#+begin_src emacs-lisp
|
||||
(use-package company
|
||||
:ensure t
|
||||
:config
|
||||
(global-company-mode))
|
||||
#+end_src
|
||||
** LSP
|
||||
|
Loading…
Reference in New Issue
Block a user