Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ligatures for lisp comment delimiters #292

Open
stevemolitor opened this issue Apr 19, 2024 · 2 comments
Open

Ligatures for lisp comment delimiters #292

stevemolitor opened this issue Apr 19, 2024 · 2 comments

Comments

@stevemolitor
Copy link

Lisp languages use ;; to start comments:

;; this is a comment for my function
(defun my-function ())

It'd be nice if there were a ligature for ;;, to group the characters more closely together, similar to the // ligature. This would benefit languages like Emacs Lisp, Clojure, Comment Lisp, Scheme, Racket, etc.

Emacs often uses multiple ; characters as a section header in code:

;;; this is a section header

;; function 1 comment
(defun f1())

;;;; this is a nested section header
;; function 2 comment
(defun f2()

So it'd also be nice if sequences of ; characters like ;;;, ;;;;, ;;;;; were also ligatures.

@fabrizioschiavi
Copy link
Owner

It’s a good suggestion Steve, thanks!
My question is: How can we design this ligature to be both captivating and appealing?

@stevemolitor
Copy link
Author

stevemolitor commented Apr 23, 2024

Hmm, I guess I was thinking it would group the ; characters more closely together, similar to the ... or || ligatures.

Here's how it looks in Iosevak, with ligatures off and the on:

Note that with ligatures on it groups the ; characters more closely together. It's subtle but signals that e.g. ;; constitutes a single semantic unit (comment character).

(Also note that character alignment does not shift around when ligatures are turned on.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants