开发者社区 问答 正文

emacs可不可以像vim那样c-e/c-y一行一行的滚动~?

c-v/m-v一滚就滚全屏幕.

展开
收起
a123456678 2016-06-21 15:52:45 1964 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 我的.emacs中这样设置了下,ALT + P/N 可以方便的上下滚动

    (defun hold-line-scroll-up()
    "Scroll the page with the cursor in the same line"
    (interactive)
    (let ((next-screen-context-lines
    (count-lines
    (window-start) (window-end))))
    (scroll-up)))
    (global-set-key (kbd "M-N") 'hold-line-scroll-up)
    ;;
    (defun hold-line-scroll-down()
    "Scroll the page with the cursor in the same line"
    (interactive)
    (let ((next-screen-context-lines
    (count-lines
    (window-start) (window-end))))
    (scroll-down)))
    (global-set-key (kbd "M-P") 'hold-line-scroll-down)
    2019-07-17 19:45:00 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答分类:
问答标签:
问答地址:
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等