Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions breadcrumb.el
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,15 @@ If POS is nil, use current buffer location."
(bury-buffer))
)

(defun toggle-read-only (f)
"Toggle the read-only status of the current buffer based on the
value of f. If f is 1, make the buffer read-only. If f is 0,
make the buffer writable."
(interactive "P")
(if (equal f 0)
(read-only-mode -1)
(read-only-mode 1)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Expand Down