Skip to content

Commit

Permalink
refactor: move more settings to me-builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 17, 2023
1 parent 10e3411 commit ac827ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@
(hide-ifdef-shadow t)
(hide-ifdef-initially t))

(use-package hl-line
:straight (:type built-in)
;; Highlight the current line
:hook ((prog-mode conf-mode text-mode) . hl-line-mode))

(use-package hideshow
:straight (:type built-in)
;; Hide/show code blocks, a.k.a. code folding
:hook ((prog-mode conf-mode) . hs-minor-mode))

(use-package xref
:straight (:type built-in)
:custom
Expand Down Expand Up @@ -1026,7 +1036,7 @@
:straight (:type built-in)
:custom
;; Make mouse scroll a little faster
(mouse-wheel-scroll-amount '(2 ((shift) . hscroll) ((meta) . nil) ((control meta) . global-text-scale) ((control) . text-scale)))
(mouse-wheel-scroll-amount '(2 ((shift) . hscroll) ((meta) . nil) ((control meta) . global-text-scale) ((control) . text-scale)))
;; Make mouse scroll a little faster horizontally
(mouse-wheel-scroll-amount-horizontal 2))

Expand Down
8 changes: 0 additions & 8 deletions core/me-defaults.el
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@
;; Set line width for the divider in `window-divider-mode' to 2px
window-divider-default-bottom-width 2
window-divider-default-right-width 2
;; Do not show tabs (`tab-bar' is configured in `me-workspaces')
tab-bar-show nil

;; ====== Undo ======
;; 10MB (default is 160kB)
Expand Down Expand Up @@ -245,12 +243,6 @@ or file path may exist now."
(set-auto-mode))))))

;; ====== Modes enabled locally, mainly for `prog-mode', `conf-mode' and `text-mode' ======
;; Highlight the current line
(+add-hook! (prog-mode conf-mode text-mode) #'hl-line-mode)

;; Hide/show code blocks, a.k.a. code folding
(+add-hook! (prog-mode conf-mode) #'hs-minor-mode)

;; Wrap long lines
(+add-hook! (prog-mode conf-mode text-mode) #'visual-line-mode)

Expand Down

0 comments on commit ac827ff

Please sign in to comment.