Re: [O] editing orgmode code blocks always indents content..anyway to stop this?

2017-02-04 Thread Xebar Saram
On Tue, Jan 31, 2017 at 5:15 PM, Nick Dokos  wrote:

> org-edit-src-content-indentation
>

Hi Nick sorry for that awkward code snippet , i dunno how it got that way
(the setq was missing :))  and why init was giving me any errors. ill check
if now the indentation works and update everyone

thx

Z


Re: [O] editing orgmode code blocks always indents content..anyway to stop this?

2017-01-31 Thread Nick Dokos
Xebar Saram  writes:

> On Tue, Jan 31, 2017 at 9:53 AM, Nicolas Goaziou  
> wrote:
>
> org-edit-src-content-indentation
>
> thx Nicolas!
>
> i have this set in my config to '0' see here
>
> #+BEGIN_SRC emacs-lisp  :results none
> ;; don't indent source code
> org-edit-src-content-indentation 0
> ;; don't adapt indentation
> org-adapt-indentation nil
> ;; preserve the indentation inside of source blocks
> org-src-preserve-indentation t
> #+END_SRC
>

I don't understand what you are doing here: this is not lisp code,
unless there is context that you are not telling us about.  How
exactly do you set it to 0 in your config?

Also, have you checked that it is 0 at runtime? C-h v
org-edit-src-content-indentation RET.

-- 
Nick




Re: [O] editing orgmode code blocks always indents content..anyway to stop this?

2017-01-31 Thread Nicolas Goaziou
Xebar Saram  writes:

> i have this set in my config to '0' see here
>
> #+BEGIN_SRC emacs-lisp  :results none
> ;; don't indent source code
> org-edit-src-content-indentation 0
> ;; don't adapt indentation
> org-adapt-indentation nil
> ;; preserve the indentation inside of source blocks
> org-src-preserve-indentation t
> #+END_SRC
>
> shouldn't that not indent?

It shouldn't. You may want to try with a minimal config, or produce an
ECM. I cannot reproduce your issue.

Regards,



Re: [O] editing orgmode code blocks always indents content..anyway to stop this?

2017-01-30 Thread Xebar Saram
On Tue, Jan 31, 2017 at 9:53 AM, Nicolas Goaziou 
wrote:

> org-edit-src-content-indentation
>

thx Nicolas!

i have this set in my config to '0' see here

#+BEGIN_SRC emacs-lisp  :results none
;; don't indent source code
org-edit-src-content-indentation 0
;; don't adapt indentation
org-adapt-indentation nil
;; preserve the indentation inside of source blocks
org-src-preserve-indentation t
#+END_SRC

shouldn't that not indent?


Re: [O] editing orgmode code blocks always indents content..anyway to stop this?

2017-01-30 Thread Nicolas Goaziou
Hello,

Xebar Saram  writes:

> i have this weird behaviour where when sometime i edit org code blocks the
> text moves (i guess indents) automatically so i start with this
>
> #+BEGIN_SRC emacs-lisp  :results none
> (require 'gnus)
> (require 'nnir)
> #+END_SRC
>
>
>
> and the text switches automatically to this:
>
> #+BEGIN_SRC emacs-lisp  :results none
> (require 'gnus)
> (require 'nnir)
> #+END_SRC
>
>
> is there a setting to disable this?

See `org-edit-src-content-indentation'.

Regards,

-- 
Nicolas Goaziou



[O] editing orgmode code blocks always indents content..anyway to stop this?

2017-01-30 Thread Xebar Saram
Hi all

i have this weird behaviour where when sometime i edit org code blocks the
text moves (i guess indents) automatically so i start with this

#+BEGIN_SRC emacs-lisp  :results none
(require 'gnus)
(require 'nnir)
#+END_SRC


and the text switches automatically to this:

#+BEGIN_SRC emacs-lisp  :results none
(require 'gnus)
(require 'nnir)
#+END_SRC


is there a setting to disable this?

best

Z