emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: how to disable smart-tab only on org headline?
Date: Sat, 9 Apr 2016 18:22:43 +0000 (UTC)	[thread overview]
Message-ID: <loom.20160409T201824-440@post.gmane.org> (raw)
In-Reply-To: CAOQHXPrfXjmmd4aKSH=7N710sKJhBn3BQTp+tUoEkB5RRMUTHw@mail.gmail.com

Xebar Saram <zeltakc <at> gmail.com> writes:

> im pretty sure smart tab activates when im in org, when i issue C-h k i
get this
> 
> 
> It is bound to TAB, <tab>, <menu-bar> <YASnippet> <Expand trigger>.
> 
> (yas-expand &optional FIELD)
> 
> Expand a snippet before point. If no snippet
> expansion is possible, call command `smart-tab'.
> 
> 
> and i also see smart tab in the mod line/
> 
> any clue?

Hi Z,

Well, here's what I see in =smart-tab.el=:

#+BEGIN_SRC elisp
  (defcustom smart-tab-disabled-major-modes '(org-mode term-mode eshell-mode
w3m-mode magit-mode)
    ...)
  ...
  (define-minor-mode smart-tab-mode
    ...
    (when (or (minibufferp)
              buffer-read-only
              (member major-mode smart-tab-disabled-major-modes))
      (smart-tab-mode-off)))
#+END_SRC

And when I try to use it in an Org buffer, it says "Smart-Tab mode disabled."

Maybe you have an old version that doesn't do this?

      reply	other threads:[~2016-04-09 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 14:12 how to disable smart-tab only on org headline? Xebar Saram
2016-04-07 14:59 ` Adam Porter
2016-04-07 15:12   ` Adam Porter
2016-04-09 15:21     ` Xebar Saram
2016-04-09 18:22       ` Adam Porter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20160409T201824-440@post.gmane.org \
    --to=adam@alphapapa.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).