Why my Emacs in Cygwin running on Windows Seven, always create Crash Dump?

前端 未结 4 1054
梦谈多话
梦谈多话 2021-01-31 20:33

I quite satisfied of how GNU tools run in my Cygwin on Windows Seven. I think it\'s easier just to use GNU/Linux, but my company here has the policy of using Windows Seven for t

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 21:03

    I have had this same problem in running console emacs through cygwin on Windows 7.

    My solution to this was to install the native GNU Emacs Windows client: http://ftp.gnu.org/gnu/emacs/windows/ and set cygwin's bash.exe as my shell.

    You can see my emacs.d/init.el at https://github.com/tildedave/init.el/blob/master/init.el: here is the part relevant to making sure that the Windows 7 Emacs plays well with cygwin --

    (if is-windows 
        (progn 
          (add-hook 'comint-output-filter-functions
                    'shell-strip-ctrl-m nil t)
          (add-hook 'comint-output-filter-functions
                    'comint-watch-for-password-prompt nil t)
          (setq explicit-shell-file-name "bash.exe")
          (setq shell-file-name explicit-shell-file-name)))
    

    For light-weight in-console editing I use nano, which does not core dump.

提交回复
热议问题