diff --git a/core/autoload/editor.el b/core/autoload/editor.el index 45335b37a..5fe041437 100644 --- a/core/autoload/editor.el +++ b/core/autoload/editor.el @@ -281,6 +281,19 @@ selected, then the current line." (setq beg (line-beginning-position) end (line-end-position))) (comment-or-uncomment-region beg end))) +;;;###autoload +(defun doom/dos2unix () + "Convert the current buffer to a Unix file encoding." + (interactive) + (set-buffer-file-coding-system 'undecided-unix nil)) + +;;;###autoload +(defun doom/unix2dos () + "Convert the current buffer to a DOS file encoding." + (interactive) + (set-buffer-file-coding-system 'undecided-dos nil)) + + ;; ;; Advice