Open iqlinuxadmin opened 5 months ago
Gary King - Albert J. Weatherhead III University Professor - Director, IQSS http://iq.harvard.edu/ - Harvard University GaryKing.org http://garyking.org/ - @. - @KingGary https://twitter.com/kinggary - 617-500-7570 - Assistant @.>: 617-495-9271
On Tue, Apr 2, 2024 at 3:47 PM iqlinuxadmin @.***> wrote:
Gary was trying to use the ctrl + ↓ keyboard shortcut to scroll without moving the text cursor. ctrl + ↑ works as intended to scroll, but he's lost the ctrl + ↓ functionality. He is having the issue on multiple laptops. It appears Apple removed or started overriding this shortcut at some point.
My colleague Corey who is working with Gary on this found this: You can add these lines to your Emacs configuration file, which is usually ~/.emacs or ~/.emacs.d/init.el. After adding these lines, restart Emacs or evaluate the changes with M-x eval-buffer. Then, you should be able to use Ctrl + Up and Ctrl + Down to scroll through text without moving the cursor: ;; Map Ctrl + Up and Ctrl + Down to scroll without moving cursor (global-set-key (kbd "C-") 'scroll-down-line) (global-set-key (kbd "C-") 'scroll-up-line)
However, Gary told him he shouldn't edit init.el since it might mess with your custom settings. Corey tried adding the above commands in ~/.emacs/custom, but that didn't work.
— Reply to this email directly, view it on GitHub https://github.com/IQSS/IQSS.emacs/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMN7V4G5G6SMHEGJNV2HTY3MDN3AVCNFSM6AAAAABFT766WKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDCMZSHEYTOOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
This was an issue when in copilot-mode, as we had an overriding command for ctrl + ↓. We deleted the keybinding for the copilot-mode command, and the keybinding now works for scrolling as needed.
Gary was trying to use the ctrl + ↓ keyboard shortcut to scroll without moving the text cursor. ctrl + ↑ works as intended to scroll, but he's lost the ctrl + ↓ functionality. He is having the issue on multiple laptops. It appears Apple removed or started overriding this shortcut at some point.
My colleague Corey who is working with Gary on this found this: You can add these lines to your Emacs configuration file, which is usually ~/.emacs or ~/.emacs.d/init.el. After adding these lines, restart Emacs or evaluate the changes with M-x eval-buffer. Then, you should be able to use Ctrl + Up and Ctrl + Down to scroll through text without moving the cursor: ;; Map Ctrl + Up and Ctrl + Down to scroll without moving cursor (global-set-key (kbd "C-") 'scroll-down-line)
(global-set-key (kbd "C-") 'scroll-up-line)
However, Gary told him he shouldn't edit init.el since it might mess with your custom settings. Corey tried adding the above commands in ~/.emacs/custom, but that didn't work.