|
|
|
@ -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)
|
|
|
|
|