From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to make kill-sexp work as in the rest of Emacs? Date: Mon, 27 Aug 2012 23:43:19 -0400 Message-ID: <1592.1346125399@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Ci3-00056R-G1 for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 23:43:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6Ci2-00015G-LK for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 23:43:23 -0400 Received: from g1t0028.austin.hp.com ([15.216.28.35]:39834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Ci2-000157-G5 for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 23:43:22 -0400 In-Reply-To: Message from Samuel Wales of "Mon, 27 Aug 2012 18:11:35 PDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org Samuel Wales wrote: > I like doing kill-sexp to kill a "quoted string like this". How do I > get that to > work again? > It does not work the same way in the "rest of emacs": sexp commands behave differently depending on the mode. You can e.g. (set-syntax-table lisp-mode-syntax-table) and then the sexp commands will behave lispishly. C-mode buffers do the equivalent of (set-syntax-table c-mode-syntax-table) and text mode buffers (of which org-mode is a derived mode) do (set-syntax-table text-mode-syntax-table) Setting the syntax table to e.g. the lisp mode one will certainly allow you to kill quoted strings with kill-sexp. Whether it has other, less desirable consequences, I don't know: you'll just have to try and see. Nick