Compare commits

...

2 Commits

Author SHA1 Message Date
kj
3f7fc4ec29 Add shortcut key to multi-web-mode. 2022-08-07 13:14:41 -04:00
kj
5a2f94bc32 Change hooks to improve (a few) startup time. 2022-08-07 13:12:35 -04:00
2 changed files with 7 additions and 4 deletions

View File

@ -75,7 +75,9 @@
;; :diminish flycheck-mode
:defer t
:straight t
:hook (after-init . global-flycheck-mode) ; Habilitar flycheck de manera global
:hook (prog-mode . (lambda ()
(unless (derived-mode-p 'js-mode 'makefile-mode)
(flycheck-mode))))
)
;; Mostrar los errores de flycheck en un pop up
@ -129,6 +131,7 @@
;; Mecanografía
(use-package speed-type
:defer t
:straight t
:diminish
:config
@ -143,14 +146,14 @@
:bind (("C-<tab>" . origami-toggle-node)
("C-<iso-lefttab>" . origami-toggle-all-nodes))
:hook
(after-init . global-origami-mode))
(prog-mode . global-origami-mode))
;; Pomodoro en emacs :D
(use-package pomidor
:defer t
:straight t
:bind ("<f12>" . pomidor)
:init
:config
;; (setq alert-default-style 'mode-line)
(setq alert-default-style 'libnotify)
@ -292,7 +295,6 @@
(use-package multi-web-mode
:straight t
:defer t
:hook (after-init . multi-web-global-mode)
:config
(setq mweb-default-major-mode 'html-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")

View File

@ -26,6 +26,7 @@
(global-set-key (kbd "C-x mj") 'js-mode)
(global-set-key (kbd "C-x mp") 'php-mode)
(global-set-key (kbd "C-x mr") 'rust-mode)
(global-set-key (kbd "C-x mw") 'multi-web-mode)
;; Atajos de windmove
(global-set-key (kbd "C-x <left>") 'windmove-left)