23 Oct 26

This commit is contained in:
Raymundo Vásquez Ruiz
2026-10-23 09:35:20 +02:00
parent f48fccc930
commit a453479116
67 changed files with 189 additions and 13 deletions
+51 -5
View File
@@ -1,11 +1,44 @@
;; Editor initialization
;; Editor initialization -*- lexical-binding: t; -*-
(setq company-tooltip-align-annotations t)
;; (require 'helm-config)
;; Vieja config
(projectile-mode +1)
(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
;; Optional: ag is nice alternative to using grep with Projectile
(use-package ag
:ensure t)
;; Optional: Enable vertico as the selection framework to use with Projectile
(use-package vertico
:ensure t
:init
(vertico-mode +1))
;; Optional: marginalia annotates the completion candidates - file sizes and
;; modification times at `projectile-find-file', major modes at
;; `projectile-switch-to-buffer', and so on.
(use-package marginalia
:ensure t
:init
(marginalia-mode +1))
;; Optional: which-key will show you options for partially completed keybindings
;; It's extremely useful for packages with many keybindings like Projectile.
(use-package which-key
:ensure t
:config
(which-key-mode +1))
(require 'auto-complete-config)
(add-hook 'auto-complete-mode-hook
(lambda ()
(setq ac-sources (remove 'ac-source-abbrev ac-sources))))
(ac-config-default)
(require 'neotree)
(global-set-key (kbd "C-c n") 'neotree-toggle)
@@ -18,11 +51,23 @@
(tool-bar-mode -1)
(electric-pair-mode +1)
(dumb-jump-mode)
(global-display-line-numbers-mode)
;; (load-theme 'misterioso t)
(load-theme 'doom-shades-of-purple t)
;; (global-display-line-numbers-mode)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
;; Born to be wild
(setq make-backup-files nil)
;; (setq make-backup-files nil)
;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/.
(custom-set-variables
'(auto-save-file-name-transforms
'((".*" "~/.emacs.d/autosaves/" t)))
'(backup-directory-alist
'((".*" . "~/.emacs.d/backups/"))))
;; create the autosave and backups dir if necessary, since emacs won't.
(make-directory "~/.emacs.d/autosaves/" t)
(make-directory "~/.emacs.d/backups/" t)
;; Load user path
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))
@@ -40,5 +85,6 @@
(require 'iedit)
(require 'gitlab-ci-mode)
(require 'gitlab-ci-mode-flycheck)
(require 'org)
(provide 'init-editor)
+1
View File
@@ -1,3 +1,4 @@
;; -*- lexical-binding: t; -*-
(require 'go-mode)
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
+1 -1
View File
@@ -1,4 +1,4 @@
;; Javascript and Typescript init
;; Javascript and Typescript init -*- lexical-binding: t; -*-
(require 'json-mode)
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js[x]\\'" . js2-mode))
+10
View File
@@ -0,0 +1,10 @@
;; -*- lexical-binding: t; -*-
(use-package arduino-cli-mode
:ensure t
;; :hook arduino-mode
;; :mode "\\.ino\\'"
:custom
(arduino-cli-warnings 'all)
(arduino-cli-verify t))
(provide 'init-micro)
+6 -1
View File
@@ -14,7 +14,12 @@
; list the packages you want
(setq package-list
'(all-the-icons neotree base16-theme afternoon-theme ample-theme nord-theme company-racer racer markdown-mode+ vue-mode dumb-jump magit company flycheck-rust flycheck json-mode flymake-json tss tide material-theme zenburn-theme ac-js2 auto-complete projectile helm js2-mode cargo rust-mode rust-playground css-mode skewer-mode web-mode))
'(all-the-icons
neotree base16-theme afternoon-theme ample-theme nord-theme company-racer racer
markdown-mode+ vue-mode dumb-jump magit company flycheck-rust flycheck json-mode
flymake-json tss tide material-theme zenburn-theme ac-js2 auto-complete projectile
helm js2-mode cargo rust-mode rust-playground css-mode skewer-mode web-mode
arduino-cli-mode org elpy py-autopep8 blacken ag vertico marginalia which-key))
; activate all the packages
+19
View File
@@ -0,0 +1,19 @@
;; -*- lexical-binding: t;-*-
(use-package elpy
:ensure t
:init
(elpy-enable))
;; Enable Flycheck
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
;; Enable autopep8
(require 'py-autopep8)
(add-hook 'elpy-mode-hook 'py-autopep8-mode)
(provide 'init-python)
+1 -1
View File
@@ -1,4 +1,4 @@
;; Rust config
;; Rust config -*- lexical-binding: t;-*-
(require 'rust-mode)
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
(setq rust-format-on-save t)
+1 -1
View File
@@ -1,4 +1,4 @@
;; Init Web configuration
;; Init Web configuration -*- lexical-binding: t; -*-
(require 'css-mode)
(require 'skewer-mode)