Automatically turn on enriched mode and make newlines between paragraphs hard in Emacs -


i want turn on enriched-mode in emacs default, *scratch* buffer open in mode. i've got *scratch* persistent across sessions (http://dorophone.blogspot.com/2011/11/how-to-make-emacs-scratch-buffer.html).

i added (enriched-mode) .emacs file, every start need answer question: make newlines between paragraphs hard? (y or n). tried add (use-hard-newlines) before or after (enriched-mode), add 'yes, 1 , others both commands, doesn't work. c-h f enriched-mode shows no answer.

i did today. first of loading of autosaved scratch file done shell's cat function , replaced insert-file. (enriched-mode) had added loading script. once scratch edited rich text (m-x enriched-mode , answering hard-lines prompt) open in enrichment mode without prompting.

here's function:

(defun load-persistent-scratch ()   "load contents of persistent-scratch-filename   scratch buffer, clearing contents first."   (if (file-exists-p persistent-scratch-filename)       (with-current-buffer (get-buffer "*scratch*")         (delete-region (point-min) (point-max))         (insert-file persistent-scratch-filename)))   (enriched-mode)) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -