ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Custom engine settings in AUCTEX
@ 2022-07-01 13:50 Mauricio Reyna via ntg-context
  2022-07-02  7:54 ` Jan-Erik Hägglöf via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Mauricio Reyna via ntg-context @ 2022-07-01 13:50 UTC (permalink / raw)
  To: ntg-context; +Cc: Mauricio Reyna


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

This is my emacs setup for AUCTEX with ConTeXt.

;; Install straight.el
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))



;; Install use-package
(straight-use-package 'use-package)


;; Configure use-package to use straight.el by default
(use-package straight
             :custom (straight-use-package-by-default t))




(use-package yasnippet)

;;; Auctex


(defun my-context-setup ()
  (custom-set-variables
   '(ConTeXt-Mark-version "LMTX")
   '(ConTeXt-engine "lutametatex")))

	

 (straight-use-package 'auctex)


(add-hook 'ConTeXt-mode-hook
	  (lambda ()
	    (reftex-mode 1)
            (flyspell-mode 1)
	    (auto-fill-mode 1)
	    ;(relative-line-numbers-mode 1)
	    ;(abbrev-mode 1)
	    (my-context-setup)
	    (yas-minor-mode)
	    (yas-reload-all)))


I hope this help you

Mauricio

[-- Attachment #1.2: Type: text/html, Size: 4250 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] 8+ messages in thread
* Re: Custom engine settings in AUCTEX
@ 2022-07-02 21:08 Lizardo Reyna via ntg-context
  2022-07-03 10:33 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Lizardo Reyna via ntg-context @ 2022-07-02 21:08 UTC (permalink / raw)
  To: ntg-context; +Cc: Lizardo Reyna


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

You can try adding a TeX-command with this:


(eval-after-load "context"
  '(setq TeX-command-list
    (append
      '(
        ("context"
"context --purgeall %t"
          TeX-run-command t :help "Run context (MarkIV)")
        ("luametatex"
"context --purgeall %t"
          TeX-run-command t :help "Run context (LMTX)")
      ) TeX-command-list
    )
  )
  )

--
Mauricio Reyna



[-- Attachment #1.2: Type: text/html, Size: 2618 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] 8+ messages in thread
* Custom engine settings in AUCTEX
@ 2022-07-01 13:56 Mauricio Reyna via ntg-context
  0 siblings, 0 replies; 8+ messages in thread
From: Mauricio Reyna via ntg-context @ 2022-07-01 13:56 UTC (permalink / raw)
  To: ntg-context; +Cc: Mauricio Reyna


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

You can add the path with the following line

(add-to-list 'exec-path "/opt/lmtx/tex/texmf-linux-64/bin")

--
Mauricio 




[-- Attachment #1.2: Type: text/html, Size: 2744 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] 8+ messages in thread
* Custom engine settings in AUCTEX
@ 2022-06-14 21:36 Jan-Erik Hägglöf via ntg-context
  2022-06-14 22:45 ` fv leung via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2022-06-14 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

HI!

I’ve been trying out Doom-Emacs and when I open a ConTeXt file i want the engine point to my LMTX installation.

/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-osx-64/bin/ is the path to my install on my Macos Monterey.

How can this been customized?

Its a bit confusing reading the AUCTEX manual so maybe someone has a working config already?

Thanks in advance

Jan-Erik
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2022-07-03 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 13:50 Custom engine settings in AUCTEX Mauricio Reyna via ntg-context
2022-07-02  7:54 ` Jan-Erik Hägglöf via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2022-07-02 21:08 Lizardo Reyna via ntg-context
2022-07-03 10:33 ` Hans Hagen via ntg-context
2022-07-01 13:56 Mauricio Reyna via ntg-context
2022-06-14 21:36 Jan-Erik Hägglöf via ntg-context
2022-06-14 22:45 ` fv leung via ntg-context
2022-06-17 14:26   ` skrantajanneman via ntg-context

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).