ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mauricio Reyna via ntg-context <ntg-context@ntg.nl>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Cc: Mauricio Reyna <farliz@disroot.org>
Subject: Custom engine settings in AUCTEX
Date: Fri, 1 Jul 2022 08:50:25 -0500	[thread overview]
Message-ID: <20220701135031.3C565459F4@disroot.org> (raw)


[-- 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
___________________________________________________________________________________

             reply	other threads:[~2022-07-01 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 13:50 Mauricio Reyna via ntg-context [this message]
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

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=20220701135031.3C565459F4@disroot.org \
    --to=ntg-context@ntg.nl \
    --cc=farliz@disroot.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.
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).