Enable mouse scrolling in emacs

This commit is contained in:
Dave Gallant
2021-01-27 13:35:16 -05:00
parent 8a6ba252c9
commit 548b3815e0
2 changed files with 12 additions and 9 deletions

View File

@@ -94,13 +94,6 @@
gcloud = { disabled = true; }; gcloud = { disabled = true; };
scan_timeout = 10; scan_timeout = 10;
character = { error_symbol = "[](bold red)"; }; character = { error_symbol = "[](bold red)"; };
time = {
time_format = "%T";
format = "$time($style) ";
style = "bright-white";
disabled = false;
};
}; };
}; };
@@ -337,8 +330,6 @@
doom-themes doom-themes
evil evil
evil-collection evil-collection
evil-exchange
evil-magit
evil-matchit evil-matchit
evil-numbers evil-numbers
evil-surround evil-surround

View File

@@ -46,3 +46,15 @@
;; Always show line and column number in the mode line. ;; Always show line and column number in the mode line.
(line-number-mode) (line-number-mode)
(column-number-mode) (column-number-mode)
;; Increment and decrement numbers easily
(global-set-key (kbd "C-c +") 'evil-numbers/inc-at-pt)
(global-set-key (kbd "C-c -") 'evil-numbers/dec-at-pt)
;; Enable Mouse scrolling
(unless (display-graphic-p)
;; activate mouse-based scrolling
(xterm-mouse-mode 1)
(global-set-key (kbd "<mouse-4>") 'scroll-down-line)
(global-set-key (kbd "<mouse-5>") 'scroll-up-line)
)