-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to hide new-line characters in output? #135
Comments
How about adding a hook which removes (defun my/quickrun-after-hook ()
(save-excursion
(let ((buffer-read-only nil))
(goto-char (point-min))
(while (re-search-forward "^M" nil t) ;; You need to type `C-q C-m` for inserting `^M` character. This is not two characters `^` and `M`
(replace-match "")))))
(add-hook 'quickrun-after-run-hook #'my/quickrun-after-hook) |
Thanks for the suggestion, @syohex. But the regex looks like it's searching for the letter Running a script like this:
Turns into this:
I wonder if this is legal regex syntax: |
As I commented, it is not |
Got it, @syohex! I didn't read your comment carefully, and now I understand what you meant with |
For me, I keep getting the
^M
new line character for output. Here is an example when running an emacs-lisp file:I have this is my
init.el
to set the coding system, but it doesn't seem to work.(setq default-buffer-file-coding-system 'utf-8-auto)
I'd appreciate the help.
The text was updated successfully, but these errors were encountered: