From 82e7be1ab36f8948af22dba80d77febe0d0cf05a Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sat, 25 Mar 2023 12:20:51 +0000 Subject: [PATCH] Updated config and added git ingnore --- .gitignore | 6 +++++ settings.org | 75 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..358cbd1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +elpa/ +auto-save-list/ +projectile-bookmarks.eld +recentf +settings.el +transient/ \ No newline at end of file diff --git a/settings.org b/settings.org index 71a2aca..14107ae 100644 --- a/settings.org +++ b/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