radio: files: emacs: Minor changes

impermanence
Luis Guilherme Coelho 2024-08-09 17:32:42 -03:00
parent df93ccc81e
commit 069a6b7989
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 14 additions and 11 deletions

View File

@ -108,7 +108,7 @@
(defun config () (defun config ()
(interactive) (interactive)
(let* ((default-directory "~/.config/emacs")) (let* ((default-directory "~/.config/emacs/"))
(call-interactively 'find-file))) (call-interactively 'find-file)))
(defun radio-manifests () (defun radio-manifests ()
@ -251,12 +251,12 @@
;; org ;; org
(use-package org (use-package org
:custom ((org-pretty-entities t) :custom ((org-hide-emphasis-markers t))
(org-hide-emphasis-markers t))
:hook (org-mode . (lambda () :hook (org-mode . (lambda ()
(interactive) (interactive)
(whitespace-mode 0) (whitespace-mode 0)
(display-fill-column-indicator-mode 0)))) (display-fill-column-indicator-mode 0)
(add-hook 'completion-at-point-functions #'cape-tex))))
;; irc ;; irc
(use-package circe (use-package circe
@ -420,7 +420,7 @@
(when (where-is-internal #'completion-at-point (when (where-is-internal #'completion-at-point
(list (current-local-map))) (list (current-local-map)))
(corfu-mode 1))) (corfu-mode 1)))
:hook (((prog-mode eshell-mode) . corfu-mode) :hook (((conf-mode text-mode prog-mode eshell-mode) . corfu-mode)
(corfu-mode . corfu-popupinfo-mode) (corfu-mode . corfu-popupinfo-mode)
(minibuffer-setup . corfu-enable-in-minibuffer)) (minibuffer-setup . corfu-enable-in-minibuffer))
:custom :custom
@ -440,12 +440,15 @@
;; cape ;; cape
(use-package cape (use-package cape
:init :init
(add-hook 'completion-at-point-functions #'cape-file) (dolist (mode '(text-mode-hook prog-mode-hook conf-mode-hook))
(add-hook 'completion-at-point-functions #'cape-tex) (add-hook mode
(add-hook 'completion-at-point-functions #'cape-dabbrev) (lambda ()
(add-hook 'completion-at-point-functions #'cape-keyword) (add-to-list 'completion-at-point-functions #'cape-file)
(add-hook 'completion-at-point-functions #'cape-elisp-block) (add-to-list 'completion-at-point-functions #'cape-tex)
(add-hook 'completion-at-point-functions #'cape-elisp-symbol)) (add-to-list 'completion-at-point-functions #'cape-dabbrev)
(add-to-list 'completion-at-point-functions #'cape-keyword)
(add-to-list 'completion-at-point-functions #'cape-elisp-block)
(add-to-list 'completion-at-point-functions #'cape-elisp-symbol)))))
;; (use-package kakoune ;; (use-package kakoune
;; ;; Having a non-chord way to escape is important, since key-chords don't work in macros ;; ;; Having a non-chord way to escape is important, since key-chords don't work in macros