From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117299 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Jan-Erik_H=C3=A4ggl=C3=B6f_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: Text editors Date: Tue, 28 Mar 2023 20:54:53 +0200 Message-ID: <06E61F52-8ACA-4C3A-A236-823B452D04D1@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Content-Type: multipart/mixed; boundary="===============2387402666270169234==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 28 20:55:43 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from [5.39.185.232] (helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phETv-0003r5-Da for gctc-ntg-context-518@m.gmane-mx.org; Tue, 28 Mar 2023 20:55:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 34EE11C0F26; Tue, 28 Mar 2023 20:55:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PmqJ1_xSwg7T; Tue, 28 Mar 2023 20:55:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 98E051C0D0E; Tue, 28 Mar 2023 20:55:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 266BF1C0532 for ; Tue, 28 Mar 2023 20:55:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bgp6n3RX2zBc for ; Tue, 28 Mar 2023 20:55:06 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.44; helo=mail-lf1-f44.google.com; envelope-from=skrantajanneman@gmail.com; receiver= Original-Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 02FDB1C03B1 for ; Tue, 28 Mar 2023 20:55:05 +0200 (CEST) Original-Received: by mail-lf1-f44.google.com with SMTP id g17so17115294lfv.4 for ; Tue, 28 Mar 2023 11:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680029705; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=QpadgMuR+ZyYAIIJTY16m4GdWSSsdyByHZK8hxWgyLs=; b=HvMmH0bjJQHyRPrDozYaNva6WA+GR1sJXBm8F9U9pQuLCVq3XmmXJvrMgyZ9q70+nd h0yUAAy1UB8x9rXE03s7IOLUHJjDCOLbOMe7b6eo8WiZUboW9svlhVS/xIdQMI4RMICI PjVdV4LDbed93gObDM7TBNTWGEDj07Pd/Wg/Bw2Xk8Y0MyG4HURalV/KlZUrO/kmgxGt S4uEfh5Goj2OdMfZBRyi5cLi9dnVxy93uQbdb7Ts1H9/cut6TYt7r28TeQ13jqXkPEeY R9PUai7yflr+viX7msyDfYCna8Q2yxyr1dKe//Zpu6JQ/8kLguLyVD7qd6MuViQQn3p7 x1kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680029705; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QpadgMuR+ZyYAIIJTY16m4GdWSSsdyByHZK8hxWgyLs=; b=p8a4QcUJ573pyKzKD9EGrv+Jx06IRGS+PVvWGtk2Ks45QORaypcQTctLmkXmBYyRfV iweKp3+xrclY+etgn7sRIPNwJgJBEyiq9aH2pjp27VX2+7nYX9i4eDiR7NENY5FVhxDr tpbcFLvmPBrYRZTt6TjxiS/0vjxQpNPAWVobllN2VnCZTwe+DuWheilbk6skfImREiTE ZLPeB1y/pNZr4Bow+EsZvY7bRqxDJTXp6Etusx205ZHxiyVz15oE9LMPjQx4/WtyHy+U Cq67d7C4XmtgXpHxvtQV6HdNHp0QhJcJIQDre1Fd2YJ1TL4Hmmzfm7CMbCocPcUvTr1M HAmw== X-Gm-Message-State: AAQBX9dTqUtZGrZ3TESdqz0BEvtE1XxjTLy0GDKSoOR5AF3j2OcmFb1A m0qn9o3z30zzWO3v2eVAUQT9MO94u4w= X-Google-Smtp-Source: AKy350YTIb/zfCDmfvKKVqMS1GLpQLJhmwjM8upuRPmFgEmVwi9djWVxkWz0hVrGbC6aDF2Y1ligIg== X-Received: by 2002:ac2:48aa:0:b0:4b3:d6e1:26bb with SMTP id u10-20020ac248aa000000b004b3d6e126bbmr4538046lfg.29.1680029704620; Tue, 28 Mar 2023 11:55:04 -0700 (PDT) Original-Received: from smtpclient.apple (h-98-128-229-7.NA.cust.bahnhof.se. [98.128.229.7]) by smtp.gmail.com with ESMTPSA id d13-20020ac241cd000000b004b58500383bsm5105110lfi.272.2023.03.28.11.55.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2023 11:55:04 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.200.110.1.12) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" X-Broken-Reverse-DNS: no host name found for IP address 5.39.185.232 Xref: news.gmane.io gmane.comp.tex.context:117299 Archived-At: --===============2387402666270169234== Content-Type: multipart/alternative; boundary="Apple-Mail=_1A22E1EE-9BE0-43A0-A6A3-F351C8718198" --Apple-Mail=_1A22E1EE-9BE0-43A0-A6A3-F351C8718198 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 HI! I=E2=80=99ve been using emacs and played around with configuration and = finally found a good and very useful setup using LMTX installation. Also I=E2=80=99ve customized with help from YAsnippet my own snippets = s=C3=A5 it goes very fast. Below I have a setup on my macos that uses - ConTeXt LMTX - emacs-lisp setting in ~/.emacs.d/init.el - customized setting for preview with Skim pdf reader - YASnippet snippets on my dropbox cloudstoring so I can use it on = several computers and has a macro syntax easy to learn. - Bind-keys for fast build and preview on two pane "side by side editor = and previewer" in "TeXshop style=E2=80=9D. C-=C3=A5 Build document and C-c C-v for fast preview in Skim Something to start playing with below to put in your init.el file ;; This is for getting preferred position and size of the emacs editor = frame (add-to-list 'default-frame-alist '(top . 25)) (add-to-list 'default-frame-alist '(left . 1)) (add-to-list 'default-frame-alist '(height . 56)) (add-to-list 'default-frame-alist '(width . 120)) ;; For solving path issues install: do M-x package-install RET = exec-path-from-shel RETl (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) ;; For configuring context (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode)) (eval-after-load 'tex '(add-to-list 'TeX-command-list '("LuaMetaTeX" "mtxrun --autogenerate --script context %t" TeX-run-command nil (context-mode) :help "Run LuaMetaTeX"))) =20 (defun myctx () "Saves the current buffer and runs ConTeXt, all with no prompts or = further interaction." (interactive) (save-buffer) (TeX-command "LuaMetaTeX" 'TeX-master-file -1)) ;; (add-hook 'ConTeXt-mode-hook 'turn-on-smartparens-strict-mode) (add-hook 'ConTeXt-mode-hook (lambda () (define-key ConTeXt-mode-map = (kbd "C-=C3=A5") 'myctx))) (setq TeX-output-view-style '("^pdf$" "." "open -a Skim.app %o")) (setq TeX-view-program-list '(("Skim" "open -a Skim.app %o") )) (add-hook 'ConTeXt-mode-hook (lambda () (setq TeX-view-program-selection = '((output-pdf "Skim"))))) ;; YASnippet config (use-package yasnippet :config (setq yas-snippet-dirs = '("~/Dropbox/filer/system/emacsgrejer/snippets")) (yas-global-mode 1) (setq yas/triggers-in-field t)) Hope this helps and gives some inspiration to get started if you choose = emacs /Jan-Erik > 26 mars 2023 kl. 10:22 skrev Alexandre Christe via ntg-context = : >=20 > Dear ConTeXt users, >=20 > I'm wondering what kind of typesetting system / syntax highlighting / = completion you're using. >=20 > I've been using myself the simple_Context package for SublimeText = which I scavenged a while ago before it was made unavailable (I wanted = to attach but it's too big for the list). But it's sort of a dead-end. >=20 > Open to anything from vim/neovim to emacs or more exotic. Maybe it = would be nice to show the config. (And yes I've seen the Wiki page = https://wiki.contextgarden.net/Text_Editors but I've the feeling some = content is outdated.) >=20 > Thanks in advance, > Alex > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_1A22E1EE-9BE0-43A0-A6A3-F351C8718198 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 HI!

I=E2=80=99ve been using emacs = and played around with configuration and finally found a good and very = useful setup using LMTX installation.

Also = I=E2=80=99ve customized with help from YAsnippet my own snippets s=C3=A5 = it goes very fast.

Below I have a setup on my = macos that uses

- ConTeXt LMTX
- = emacs-lisp setting in ~/.emacs.d/init.el
- customized setting = for preview with Skim pdf reader
- YASnippet snippets on my = dropbox cloudstoring so I can use it on several computers and has a = macro syntax easy to learn.
- Bind-keys for fast build and = preview on two pane "side by side editor and previewer" in "TeXshop = style=E2=80=9D.
  C-=C3=A5 Build document and C-c C-v for = fast preview in Skim

Something to start playing = with below to put in your init.el = file


;; This is for getting = preferred position and size of the emacs editor = frame
(add-to-list 'default-frame-alist '(top . = 25))
    (add-to-list 'default-frame-alist '(left . = 1))
    (add-to-list 'default-frame-alist '(height . = 56))
    (add-to-list 'default-frame-alist '(width . = 120))

;; For solving path issues install: =  do M-x package-install RET exec-path-from-shel = RETl
(when (memq window-system '(mac ns = x))
  = (exec-path-from-shell-initialize))

;; For = configuring context
(add-to-list 'auto-mode-alist = '("\\.tex\\'" . context-mode))
    (eval-after-load = 'tex '(add-to-list 'TeX-command-list
    = '("LuaMetaTeX"
    "mtxrun --autogenerate --script = context %t" TeX-run-command nil
    (context-mode) = :help "Run LuaMetaTeX")))
    
(defun = myctx ()
"Saves the current buffer and runs ConTeXt, all with = no prompts or further interaction."
  = (interactive)
  (save-buffer)
  = (TeX-command "LuaMetaTeX" 'TeX-master-file -1))
 ;; = (add-hook 'ConTeXt-mode-hook = 'turn-on-smartparens-strict-mode)
(add-hook 'ConTeXt-mode-hook = (lambda () (define-key ConTeXt-mode-map (kbd "C-=C3=A5") = 'myctx)))

(setq TeX-output-view-style '("^pdf$" = "." "open -a Skim.app %o"))

(setq = TeX-view-program-list
      '(("Skim" "open -a = Skim.app %o")
        = ))

(add-hook 'ConTeXt-mode-hook (lambda () = (setq TeX-view-program-selection '((output-pdf = "Skim")))))

;; YASnippet = config

(use-package = yasnippet
      :config
    =   (setq yas-snippet-dirs = '("~/Dropbox/filer/system/emacsgrejer/snippets"))
  =     (yas-global-mode 1)
      (setq = yas/triggers-in-field t))

Hope this helps = and gives some inspiration to get started if you choose = emacs

/Jan-Erik



26 mars 2023 kl. 10:22 = skrev Alexandre Christe via ntg-context = <ntg-context@ntg.nl>:

Dear ConTeXt = users,

I'm wondering what kind of typesetting system = / syntax highlighting / completion you're = using.

I've been using myself the = simple_Context package for SublimeText which I scavenged a while ago = before it was made unavailable (I wanted to attach but it's too big for = the list). But it's sort of a dead-end.

Open to = anything from vim/neovim to emacs or more exotic. Maybe it would be nice = to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editors but I've the feeling = some content is outdated.)

Thanks in = advance,
Alex
= __________________________________________________________________________= _________
If your question is of interest to others as well, please = add an entry to the Wiki!

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

= --Apple-Mail=_1A22E1EE-9BE0-43A0-A6A3-F351C8718198-- --===============2387402666270169234== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2387402666270169234==--