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
|
#+end_src
|
||||||
** Themes
|
** Themes
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package afternoon-theme
|
(use-package afternoon-theme
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(load-theme 'afternoon t)
|
;;(load-theme 'afternoon t)
|
||||||
)
|
)
|
||||||
(use-package modus-themes
|
(use-package modus-themes
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
;;(load-theme 'modus-operandi t)
|
(load-theme 'modus-operandi t)
|
||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
** UI
|
** UI
|
||||||
*** Split vertical defaul
|
*** Split vertical defaul
|
||||||
@ -34,9 +34,9 @@ Configure layout
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun setup-dashboard-looks ()
|
(defun setup-dashboard-looks ()
|
||||||
"Config ideas https://github.com/emacs-dashboard/emacs-dashboard"
|
"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 "r") 'dashboard-section-1)
|
||||||
(evil-define-key 'normal 'dashboard-mode-map (kbd "J") 'dashboard-next-section)
|
(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 "K") 'dashboard-previous-section)
|
||||||
(setq dashboard-startup-banner "~/.emacs.d/OnePiece.gif")
|
(setq dashboard-startup-banner "~/.emacs.d/OnePiece.gif")
|
||||||
(setq dashboard-banner-logo-title "Lets get coddiinnngggg")
|
(setq dashboard-banner-logo-title "Lets get coddiinnngggg")
|
||||||
(setq dashboard-show-shortcuts t)
|
(setq dashboard-show-shortcuts t)
|
||||||
@ -75,9 +75,35 @@ Evil dashboard setup
|
|||||||
(evil-dashboard-setup)
|
(evil-dashboard-setup)
|
||||||
(dashboard-setup-startup-hook))
|
(dashboard-setup-startup-hook))
|
||||||
#+end_src
|
#+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
|
* Settings
|
||||||
|
** Backup files
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq
|
||||||
|
backup-directory-alist '(("." . "/tmp/"))
|
||||||
|
auto-save-file-name-transforms '((".*" "/tmp/" t)))
|
||||||
|
#+end_src
|
||||||
* Evil
|
* Evil
|
||||||
** Base Functions
|
** Base Functions
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -95,11 +121,19 @@ Evil dashboard setup
|
|||||||
(advice-add #'evil-quit :around #'my-evil-quit)
|
(advice-add #'evil-quit :around #'my-evil-quit)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Base
|
** 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
|
#+begin_src emacs-lisp
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure
|
:ensure
|
||||||
:after (evil-leader)
|
:after (evil-leader)
|
||||||
:config
|
:config
|
||||||
|
(setup-evil-mode)
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Leader
|
** Leader
|
||||||
@ -113,7 +147,9 @@ Evil dashboard setup
|
|||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"f" 'find-file
|
"f" 'find-file
|
||||||
"g" 'magit
|
"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 "is" 'org-insert-structure-template)
|
||||||
(evil-leader/set-key-for-mode 'org-mode "e" 'org-edit-src-code)
|
(evil-leader/set-key-for-mode 'org-mode "e" 'org-edit-src-code)
|
||||||
)
|
)
|
||||||
@ -140,3 +176,12 @@ Evil dashboard setup
|
|||||||
(use-package magit
|
(use-package magit
|
||||||
:ensure t)
|
:ensure t)
|
||||||
#+end_src
|
#+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