Compare commits

...

12 Commits

Author SHA1 Message Date
Gregorio Reyes e8a7ed6e3d Track custom-vars.el file 2023-11-11 11:16:34 -06:00
Gregorio Reyes 38f86f5ddb Move customization variables to a separate file 2023-11-11 11:16:12 -06:00
Gregorio Reyes 0c8a826506 Remember cursor location in opened files 2023-11-11 11:15:48 -06:00
Gregorio Reyes e65650d9df Save history in minibuffer prompts 2023-11-11 11:15:25 -06:00
Gregorio Reyes e83977ad25 Set custom key to open recent files using recentf 2023-11-11 11:14:47 -06:00
Gregorio Reyes 9c4ff51078 Activate recentf-mode 2023-11-11 11:14:30 -06:00
Gregorio Reyes fa697a33e8 Change global prefix from custom keys 2023-11-11 11:14:04 -06:00
Gregorio Reyes ff74f76b86 Comment load-theme 2023-11-11 11:12:48 -06:00
Gregorio Reyes d36b56d9da Add csv mode 2023-11-11 10:53:38 -06:00
Gregorio Reyes ee62be97f4 Add restclient 2023-11-11 10:53:26 -06:00
Gregorio Reyes f7f0d6b945 Update projectile path 2023-11-11 10:53:13 -06:00
Gregorio Reyes 87fd6a0a47 Update gitignore 2023-11-11 10:52:13 -06:00
3 changed files with 57 additions and 26 deletions

3
.gitignore vendored
View File

@ -3,4 +3,5 @@
# Except
!.gitignore
!init.el
!init.el
!custom-vars.el

13
custom-vars.el Normal file
View File

@ -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.
'(package-selected-packages
'(csv-mode restclient which-key visual-fill-column use-package rainbow-delimiters org-bullets magit ivy-rich hydra highlight-indent-guides helpful general elpy doom-themes doom-modeline counsel-projectile command-log-mode blacken all-the-icons)))
(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.
)

67
init.el
View File

@ -18,7 +18,17 @@
;; Set the variable pitch face
(set-face-attribute 'variable-pitch nil :font "Liberation Mono" :height 120 :weight 'regular)
(load-theme 'modus-vivendi)
;;(load-theme 'modus-vivendi)
;;Enable mode to quickly open recent files
(recentf-mode 1) ;;Configured in custom-keys
;;Save what you enter into minibuffer prompts
(setq history-length 25)
(savehist-mode 1) ;;Navigate history using M-n and M-p commands (similar to C-n and C-p)
;;Remember and restore the last cursor location of opened files
(save-place-mode 1)
;;Make ESCquit prompts
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
@ -198,7 +208,7 @@
(general-create-definer kempii/custom-keys
;; :keymaps '(normal insert visual emacs)
;; :prefix "C-."
:global-prefix "C-."))
:global-prefix "C-,"))
;;Install hydra to define custom functions
(use-package hydra)
@ -212,17 +222,24 @@
;;Create custom keys under kempii/custom-keys for screen configuration
(kempii/custom-keys
"C-. s" '(:ignore s :which-key "screen customization")
"C-. st" '(counsel-load-theme :which-key "choose theme")
"C-. sz" '(hydra-text-scale/body :which-key "scale text"))
"C-, s" '(:ignore s :which-key "screen customization")
"C-, st" '(counsel-load-theme :which-key "choose theme")
;;Add hydra zoom function to my custom keys
"C-, sz" '(hydra-text-scale/body :which-key "scale text"))
;;Create custom keys under kempii/custom-keys for file customization
(kempii/custom-keys
"C-, f" '(:ignore f :which-key "files customization")
;;Open recent file using recentf-mode
"C-, fr" '(recentf-open-files :which-key "open recent files"))
;;Create custom keys under kempii/custom-keys for utilities shortcuts
(kempii/custom-keys
"C-. u" '(:ignore u :which-key "utilities")
"C-. uf" '(browse-url :which-key "firefox webpage")
"C-. us" '(browse-url-firefox :which-key "firefox search")
"C-. ug" '("C-x g" :which-key "magit status")
"C-. ur" '(projectile-run-project :which-key "run project"))
"C-, u" '(:ignore u :which-key "utilities")
"C-, uf" '(browse-url :which-key "firefox webpage")
"C-, us" '(browse-url-firefox :which-key "firefox search")
"C-, ug" '("C-x g" :which-key "magit status")
"C-, ur" '(projectile-run-project :which-key "run project"))
;;Firefox configuration
(setq browse-url-firefox-arguments '("-search"))
@ -236,8 +253,8 @@
("C-c p" . projectile-command-map)
:init
;; NOTE: Set this to the folder where you keep your Git repos!
(when (file-directory-p "c:/Users/grego/Documents/Proyectos")
(setq projectile-project-search-path '("c:/Users/grego/Documents/Proyectos")))
(when (file-directory-p "/home/kempii/Projects")
(setq projectile-project-search-path '("/home/kempii/Projects")))
(setq projectile-switch-project-action #'projectile-dired))
;;Install counsel-projectile to manage projectile using counsel
@ -249,6 +266,15 @@
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
;;Install restclient to communicate with API
;; Use restclient-mode in a text file to communicate with APIs
(use-package restclient
:ensure t
:mode (("\\.http\\'" . restclient-mode)))
;;Install csv-mode
(use-package csv-mode)
;;Install org
(defun kempii/org-mode-setup ()
(org-indent-mode)
@ -302,16 +328,7 @@
(use-package visual-fill-column
:hook (org-mode . kempii/org-mode-visual-fill))
(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.
'(package-selected-packages
'(blacken which-key visual-fill-column use-package rainbow-delimiters py-autopep8 org-bullets magit ivy-rich hydra highlight-indent-guides helpful general elpy doom-themes doom-modeline counsel-projectile command-log-mode all-the-icons)))
(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.
)
;;Move customization variables to a separate file and load it
(setq custom-file (locate-user-emacs-file "custom-vars.el"))
(load custom-file 'noerror 'nomessage)