From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Help with sql mode
Date: Fri, 09 Apr 2010 13:28:01 +0200 [thread overview]
Message-ID: <2jf397-eck.ln1@news.eternal-september.org> (raw)
In-Reply-To: x2p3a68a1031004090108gfc609c6alc8b7cb859244f4a6@mail.gmail.com
"Gary ." <help-gnu-emacs@garydjones.name> writes:
> On Thu, Apr 8, 2010 at 9:27 PM, Richard Riley wrote:
>> "Gary ." writes:
>>> On Thu, Apr 8, 2010 at 7:14 PM, Richard Riley wrote:
>>>> Example:
>>>>
>>>> use mydatabase;
>>>> select name from phonerecords where name like "Ril%";
>>>
>>> Ah. Well I didn't do a use, I just tried
>>> SELECT VERSION(), CURRENT_DATE;
>>> and nothing happened.
>>>
>>
>> You don't need "use" for that. It should work.
>
> Well, yeah. That's why I asked :)
>
> Let me start from the beginning.
> 0. start emacs :)
> 1. `M-x sql-mysql' --> I am prompted for various connection infos
> which I answer, window is split into two, one showing the current
> buffer and one showing the *SQL* buffer
> 2. I type my query as shown previously into the *SQL* buffer --> I get
> some nice syntax highlighting
> 3. Press RET / ENTER --> the highlighting vanishes... no sign of any
> output anywhere...
>
> My config looks like:
> (require 'sql)
> (setq auto-mode-alist
> (append '(("\\.sql$" . sql-mode)
> ("\\.tbl$" . sql-mode)
> ("\\.sp$" . sql-mode))
> auto-mode-alist))
>
> That's it.
>
> The problem is I can't really find much documentation about this, it
> seems to one of the least documented modes I've come across :(
>
I simply have
(define-key mode-specific-map [?Q] 'sql-mysql)
in emacs 23.
I dont edit sql, tbl or sp files directly and only use the interpreter.
Try with a more minimised .emacs and check nothing else is clashing.
next prev parent reply other threads:[~2010-04-09 11:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 14:07 Help with sql mode Gary .
2010-04-08 17:14 ` Richard Riley
2010-04-08 19:07 ` Gary .
2010-04-08 19:27 ` Richard Riley
2010-04-09 8:08 ` Gary .
2010-04-09 11:28 ` Richard Riley [this message]
2010-04-09 12:07 ` Gary .
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2jf397-eck.ln1@news.eternal-september.org \
--to=rileyrgdev@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.