emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How do disallow editing of source blocks while inside of org-mod


From: Thorsten Jolitz
Subject: Re: [O] How do disallow editing of source blocks while inside of org-mode?
Date: Sun, 15 Jun 2014 19:26:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Grant Rettke <address@hidden> writes:

Hi,

> Where might I set out exploring how to implement such a thing if it
> does not? My first thought is to see if an edit is occurring within a
> source block that has a language immediately to jump to the buffer
> that C-' would have created for me.

maybe here

,--------------------------------------------
| (defun org-self-insert-command (N)
|   (interactive "p")
|   (org-check-before-invisible-edit 'insert)
|   (cond
|    ((and org-use-speed-commands ...)
|    ((and (org-table-p) ...)))))
`--------------------------------------------

adding a case like 

  ,---------------------------------
  | ((and (org-in-src-block-p) ...))
  `---------------------------------

?

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]