Skip to content

Commit

Permalink
tweak: remove unneeded :mode blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 28, 2023
1 parent 19f2c37 commit 05ca6d2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
10 changes: 3 additions & 7 deletions modules/me-data.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

(use-package csv-mode
:straight t
:mode "\\.csv\\'"
:config
(+map-local! :keymaps 'csv-mode-map
"r" #'+csv-rainbow
Expand Down Expand Up @@ -48,8 +47,7 @@
:hook (yaml-ts-mode . yaml-pro-ts-mode))

(use-package toml-mode
:straight t
:mode "\\.toml\\'")
:straight t)

(use-package json-mode
:straight t
Expand Down Expand Up @@ -79,7 +77,6 @@

(use-package plantuml-mode
:straight t
:mode "\\.plantuml\\'"
:hook (plantuml-mode . +plantuml-mode-setup)
:custom
(plantuml-jar-path (concat minemacs-local-dir "plantuml/plantuml.jar"))
Expand Down Expand Up @@ -159,10 +156,9 @@

(use-package gnuplot
:straight t
:mode ("\\.gnuplot\\'" . gnuplot-mode)
:hook (gnuplot-mode . display-line-numbers-mode)
:hook (gnuplot-mode . visual-line-mode)
:init
(add-to-list 'auto-mode-alist '("\\.gnuplot\\'" . gnuplot-mode)))
:hook (gnuplot-mode . visual-line-mode))


(provide 'me-data)
Expand Down
5 changes: 2 additions & 3 deletions modules/me-docs.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

(use-package pdf-tools
:straight t
:mode ("\\.pdf\\'" . pdf-view-mode)
:mode ("\\.[pP][dD][fF]\\'" . pdf-view-mode)
:magic ("%PDF" . pdf-view-mode)
:hook (minemacs-build-functions . pdf-tools-install)
:custom
Expand All @@ -20,8 +20,7 @@

(use-package nov
:straight t
:mode ("\\.epub\\'" . nov-mode)
:hook (nov-mode . +nov-mode-setup)
:mode ("\\.[eE][pP][uU][bB]\\'" . nov-mode)
:custom
(nov-save-place-file (concat minemacs-local-dir "nov/save-place.el"))
:config
Expand Down
6 changes: 2 additions & 4 deletions modules/me-embedded.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
:straight (:host bitbucket :repo "olanilsson/bitbake-modes"))

(use-package mips-mode
:straight t
:mode "\\.mips\\'")
:straight t)

(use-package riscv-mode
:straight t
:mode "\\.riscv\\'")
:straight t)

(use-package x86-lookup
:straight t
Expand Down
4 changes: 1 addition & 3 deletions modules/me-math.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
;;; Code:

(defconst +maxima-path-p "/usr/share/emacs/site-lisp/maxima/")
(defconst +maxima-available-p (and (executable-find "maxima")
(file-directory-p +maxima-path-p)))
(defconst +maxima-available-p (and (executable-find "maxima") (file-directory-p +maxima-path-p)))

(use-package maxima
:load-path +maxima-path-p
Expand All @@ -34,7 +33,6 @@

(use-package ein
:straight t
:mode ("\\.ipynb\\'" . ein:ipynb-mode)
:custom
(ein:output-area-inlined-images t)
:init
Expand Down
3 changes: 1 addition & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@

;;; Modes
(use-package vimrc-mode
:straight t
:mode "\\.vim\\(rc\\)?\\'")
:straight t)

(use-package rust-mode
:straight t
Expand Down

0 comments on commit 05ca6d2

Please sign in to comment.