From: seyal zavira <seyal.zavira@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: context / auctex problem?
Date: Mon, 17 Jun 2024 13:41:08 -0400 [thread overview]
Message-ID: <CADiGc-mQ=mBynZ3TUWPTxLOwQG1hKR_OLtZ2LuBsPKsUD2FPvA@mail.gmail.com> (raw)
In-Reply-To: <c112c6f9-d328-43f9-b529-365b8c32d015@fiee.net>
[-- Attachment #1.1: Type: text/plain, Size: 2134 bytes --]
In Emacs, I prefer use pure ConTeXt.
I have attached my Emacs init file. This setup is so satisfying.
You can compile your documents with just C-c c and view them with C-c v.
Also, you don't need to close the PDF after every compile (Evince will
restart the contents after compilation).
In GNOME, you can simply switch between windows using Alt+Tab.
I hope this is helpful!
On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm <texml@fiee.net> wrote:
> Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context:
> >
> > Apologies for this question, which is probably an auctex problem. I have
> > a new install of everything
> > (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver:
> > 2024.05.27 18:16 LMTX)
>
> Latest ist today’s, but that’s not the problem.
>
> > installed in
> > a separate directory.
> >
> > Running context from the commandline works fine, so I guess I did not
> > misspell the path,
> > but when running "Context All" from emacs, the error is:
> >
> > -----
> > Running `ConTeXt' on `context-test' with ``context --once --nonstop
> > context-test.tex''
> > /bin/sh: Zeile 1: context: Kommando nicht gefunden.
> >
> > TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03
> > ------
>
> Apparently, your Emacs doesn’t use the same PATH as your terminal.
>
> The error message is from /bin/sh, I guess you usually run bash, zsh or
> the like, and that gets its PATH from .bashrc or something like that.
>
> Check how Emacs calls that script, and if you can define a PATH.
>
> Hraban
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3061 bytes --]
[-- Attachment #2: .emacs --]
[-- Type: application/octet-stream, Size: 2022 bytes --]
(use-package auctex
:disabled)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("603a831e0f2e466480cdc633ba37a0b1ae3c3e9a4e90183833bc4def3421a961" default))
'(package-selected-packages '(dracula-theme)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(setq-default scroll-bar-width 7)
(setq-default tab-width 4)
(add-to-list 'auto-mode-alist '("\\.ctx\\'" . plain-tex-mode))
(setq compilation-ask-about-save nil)
(global-set-key (kbd "C-c b") 'windmove-left)
(global-set-key (kbd "C-c f") 'windmove-right)
(global-set-key (kbd "C-c p") 'windmove-up)
(global-set-key (kbd "C-c n") 'windmove-down)
(global-set-key (kbd "C-\"") (lambda () (interactive) (insert "\"")))
;; backspace behavior
(defun ryanmarcus/backward-kill-word ()
"Remove all whitespace if the character behind the cursor is whitespace, otherwise remove a word."
(interactive)
(if (looking-back "[ \n]")
;; delete horizontal space before us and then check to see if we
;; are looking at a newline
(progn (delete-horizontal-space 't)
(while (looking-back "[ \n]")
(backward-delete-char 1)))
;; otherwise, just do the normal kill word.
(backward-kill-word 1)))
(defun compile-context-file ()
(interactive)
(compile (concat "context '" (file-name-nondirectory (buffer-file-name)) "'"))
)
(global-set-key (kbd "C-c c") 'compile-context-file)
(defun view-context-file ()
(interactive)
(async-shell-command (format "evince %s.pdf" (file-name-sans-extension (file-name-nondirectory (buffer-file-name)))))
)
(global-set-key (kbd "C-c v") 'view-context-file)
[-- Attachment #3: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2024-06-17 17:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 12:15 [NTG-context] " Jürgen Hanneder via ntg-context
2024-06-17 17:23 ` [NTG-context] " Henning Hraban Ramm
2024-06-17 17:41 ` seyal zavira [this message]
2024-06-17 17:55 ` Joaquín Ataz López
2024-06-17 19:04 ` Peter Münster
2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context
2024-06-18 9:23 ` [NTG-context] " Jürgen Hanneder via ntg-context
2024-06-19 13:43 ` Jim
2024-06-18 14:12 ` [NTG-context] Re: context / auctex problem? half-solved Jürgen Hanneder via ntg-context
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='CADiGc-mQ=mBynZ3TUWPTxLOwQG1hKR_OLtZ2LuBsPKsUD2FPvA@mail.gmail.com' \
--to=seyal.zavira@gmail.com \
--cc=ntg-context@ntg.nl \
/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.
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).