ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to configure context command in Emacs
@ 2018-10-24 13:30 Jan U. Hasecke
  2018-10-24 13:53 ` Taco Hoekwater
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jan U. Hasecke @ 2018-10-24 13:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I hope there are some Emacs users out there. ;-)

I can use emacs with context-mode when I start the program like this:

. ~/context/tex/setuptex ; emacs &

I could not find a way to set this in my emacs init file. Neither of the
ways described here worked for me:

https://www.emacswiki.org/emacs/ExecPath

I set this in .bashrc:

if [-f ~/context/tex/setuptex ]; then
   . ~/context/tex/setuptex
fi

to always have context available in a shell and in emacs if I start it
from bash.

Starting Emacs via the start menu of Gnome results in an Emacs that does
not know ConTeXt.

I found some hints how to source .bashrc in emacs but this only affects
the emacs shell not the command calling from within AucTeX.

Has anyone found a solution for this?

juh


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2018-10-24 13:30 How to configure context command in Emacs Jan U. Hasecke
@ 2018-10-24 13:53 ` Taco Hoekwater
  2018-10-24 14:07 ` luigi scarso
  2019-02-14 22:03 ` Gour
  2 siblings, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2018-10-24 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 24 Oct 2018, at 15:30, Jan U. Hasecke <juh+ntg-context@mailbox.org> wrote:
> 
> Hello,
> 
> I hope there are some Emacs users out there. ;-)
> 
> I can use emacs with context-mode when I start the program like this:
> 
> . ~/context/tex/setuptex ; emacs &
> 
> I could not find a way to set this in my emacs init file. Neither of the
> ways described here worked for me:

AFAIK, combining both of these should have worked, but it has been ages
since I used emacs that way, and I do not even have one installed any more,
sorry.

> https://www.emacswiki.org/emacs/ExecPath
> 
> I set this in .bashrc:

Perhaps if you use .profile instead, as that should be executed during login
(before gnome even starts)?

Best wishes,

Taco


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2018-10-24 13:30 How to configure context command in Emacs Jan U. Hasecke
  2018-10-24 13:53 ` Taco Hoekwater
@ 2018-10-24 14:07 ` luigi scarso
  2018-10-24 14:23   ` Mohammad Hossein Bateni
  2019-02-14 22:03 ` Gour
  2 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2018-10-24 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1073 bytes --]

On Wed, Oct 24, 2018 at 3:30 PM Jan U. Hasecke <juh+ntg-context@mailbox.org>
wrote:

> Hello,
>
> I hope there are some Emacs users out there. ;-)
>
> I can use emacs with context-mode when I start the program like this:
>
> . ~/context/tex/setuptex ; emacs &
>
> I could not find a way to set this in my emacs init file. Neither of the
> ways described here worked for me:
>
> https://www.emacswiki.org/emacs/ExecPath
>
> I set this in .bashrc:
>
> if [-f ~/context/tex/setuptex ]; then
>    . ~/context/tex/setuptex
> fi
>
> to always have context available in a shell and in emacs if I start it
> from bash.
>
> Starting Emacs via the start menu of Gnome results in an Emacs that does
> not know ConTeXt.
>
> I found some hints how to source .bashrc in emacs but this only affects
> the emacs shell not the command calling from within AucTeX.
>
> Has anyone found a solution for this?
>
> juh
>
>
> not a solution for your problem (I manually run setuptex when I open an
emacs shell)
but I guess that looking at
https://www.gnu.org/software/auctex/
can help.

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1735 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2018-10-24 14:07 ` luigi scarso
@ 2018-10-24 14:23   ` Mohammad Hossein Bateni
  0 siblings, 0 replies; 7+ messages in thread
From: Mohammad Hossein Bateni @ 2018-10-24 14:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2073 bytes --]

I have a hacky solution, which I haven't tested in a while.

Make a shell script called "mycontext" somewhere in the PATH.  Include the
following in it:

#!/bin/bash

. ~/context/tex/setuptex

context $@

Make it executable.  And then use "mycontext" as the TeX command inside
emacs.  For example, you can refer to AucTeX's documentation for that.

On Wed, Oct 24, 2018 at 10:08 AM luigi scarso <luigi.scarso@gmail.com>
wrote:

>
>
> On Wed, Oct 24, 2018 at 3:30 PM Jan U. Hasecke <
> juh+ntg-context@mailbox.org> wrote:
>
>> Hello,
>>
>> I hope there are some Emacs users out there. ;-)
>>
>> I can use emacs with context-mode when I start the program like this:
>>
>> . ~/context/tex/setuptex ; emacs &
>>
>> I could not find a way to set this in my emacs init file. Neither of the
>> ways described here worked for me:
>>
>> https://www.emacswiki.org/emacs/ExecPath
>>
>> I set this in .bashrc:
>>
>> if [-f ~/context/tex/setuptex ]; then
>>    . ~/context/tex/setuptex
>> fi
>>
>> to always have context available in a shell and in emacs if I start it
>> from bash.
>>
>> Starting Emacs via the start menu of Gnome results in an Emacs that does
>> not know ConTeXt.
>>
>> I found some hints how to source .bashrc in emacs but this only affects
>> the emacs shell not the command calling from within AucTeX.
>>
>> Has anyone found a solution for this?
>>
>> juh
>>
>>
>> not a solution for your problem (I manually run setuptex when I open an
> emacs shell)
> but I guess that looking at
> https://www.gnu.org/software/auctex/
> can help.
>
> --
> luigi
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 4386 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2018-10-24 13:30 How to configure context command in Emacs Jan U. Hasecke
  2018-10-24 13:53 ` Taco Hoekwater
  2018-10-24 14:07 ` luigi scarso
@ 2019-02-14 22:03 ` Gour
  2019-02-15  2:05   ` fv leung
  2 siblings, 1 reply; 7+ messages in thread
From: Gour @ 2019-02-14 22:03 UTC (permalink / raw)
  To: ntg-context

On Wed, 24 Oct 2018 15:30:37 +0200
"Jan U. Hasecke" <juh+ntg-context@mailbox.org> wrote:

> I hope there are some Emacs users out there. ;-)

I also wonder about the current quality of ConTeXt support within Emacs?

In the past Patrick did some work on it, but, probably, atm he is busy with
Speedata Publisher...


Sincerely,
Gour

-- 
Therefore, without being attached to the fruits of activities,
one should act as a matter of duty, for by working without
attachment one attains the Supreme.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2019-02-14 22:03 ` Gour
@ 2019-02-15  2:05   ` fv leung
  2019-02-17  6:36     ` Gour
  0 siblings, 1 reply; 7+ messages in thread
From: fv leung @ 2019-02-15  2:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1682 bytes --]

I 've been using emacs + auctex for years and they work fine with ConTeXt:
I modified the \etc\environment file as:
OSFONTDIR="/usr/share/fonts;/home/fvleung/.fonts"
PATH="/home/fvleung/ConTeXt/tex/texmf-linux-64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
I added the following in the .emacs file:
;; ConTeXt mkiv
(eval-after-load 'tex
'(add-to-list
 'TeX-command-list
 '("ConTeXt mkiv" "context --nonstopmode %t"
   TeX-run-command nil (context-mode) :help "Run ConTeXt mkiv")))

Gour <gour@atmarama.com> 於 2019年2月15日 週五 上午6:05寫道:

> On Wed, 24 Oct 2018 15:30:37 +0200
> "Jan U. Hasecke" <juh+ntg-context@mailbox.org> wrote:
>
> > I hope there are some Emacs users out there. ;-)
>
> I also wonder about the current quality of ConTeXt support within Emacs?
>
> In the past Patrick did some work on it, but, probably, atm he is busy with
> Speedata Publisher...
>
>
> Sincerely,
> Gour
>
> --
> Therefore, without being attached to the fruits of activities,
> one should act as a matter of duty, for by working without
> attachment one attains the Supreme.
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2790 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to configure context command in Emacs
  2019-02-15  2:05   ` fv leung
@ 2019-02-17  6:36     ` Gour
  0 siblings, 0 replies; 7+ messages in thread
From: Gour @ 2019-02-17  6:36 UTC (permalink / raw)
  To: ntg-context

On Fri, 15 Feb 2019 10:05:07 +0800
fv leung <fvleung@gmail.com> wrote:

> I 've been using emacs + auctex for years and they work fine with
> ConTeXt: I modified the \etc\environment file as:

Thank you!

Do you possibly use RefTeX as well?


Sincerely,
Gour

-- 
As a strong wind sweeps away a boat on the water,
even one of the roaming senses on which the mind
focuses can carry away a man's intelligence.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-17  6:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24 13:30 How to configure context command in Emacs Jan U. Hasecke
2018-10-24 13:53 ` Taco Hoekwater
2018-10-24 14:07 ` luigi scarso
2018-10-24 14:23   ` Mohammad Hossein Bateni
2019-02-14 22:03 ` Gour
2019-02-15  2:05   ` fv leung
2019-02-17  6:36     ` Gour

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 NNTP newsgroup(s).