jed-users mailing list

[2008 Date Index] [2008 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Turning a buffer into read-only


On 13.11.08, Peter Bengtsson wrote:
> I sometimes split the screen into two buffers. One which I'm "copying"
> from and one that I'm editing.
> To prevent from getting myself confused I often change the mode of the
> one I'm reading from but is there a command to make it read-only to
> prevent me from accidentally editing something without noticing it.

Help>Apropos readonly:

  is_readonly set_line_readonly set_readonly toggle_readonly

I would recommend 

  M-x view-mode
  
(with view-mode from jedmodes.sf.net/mode/view/) which sets the buffer to ro
uses a "view" keymap but keeps the syntax highlight.

Remember, that you cannot have split view of a buffer but not have one in
view ro and the other rw.

Günter

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2008 date index] [2008 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]