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

config for rational-ide #123

Merged
merged 1 commit into from
May 30, 2022
Merged

Conversation

HumHongeKamyaab
Copy link
Contributor

little step to resolve #64

@HumHongeKamyaab HumHongeKamyaab changed the title added intial config for rational-ide config for rational-ide Apr 12, 2022
@abarocio80
Copy link
Contributor

Looks good. But I don't think of LaTeX as part of an IDE, even when it is a useful tool. Wouldn't that be better on another module? Just a thought.

@jeffbowman
Copy link
Contributor

Good start, I think the lisp family of languages usually have something already (although there are LSPs for Clojure and Racket it seems) ala geiser for scheme languages, sly or slime for common lisp, cider for Clojure. So, not sure we would want to run eglot-ensure in those cases. Maybe instead of adding it to prog-mode, we could loop over eglot-server-programs as it mentions the major modes supported.

Something along the lines of (untested, might not work):

(defun rational-ide--eglot-add-hook (mode)
  (let ((hook-name (intern (concat (symbol-name mode) "-hook"))))
    (add-hook hook-name #'eglot-ensure)))

(mapcar #'rational-ide--eglot-add-hook eglot-server-programs)

@bdarcus
Copy link

bdarcus commented Apr 16, 2022

... I don't think of LaTeX as part of an IDE, even when it is a useful tool. Wouldn't that be better on another module?

It definitely belongs in its own module; rational-latex.

@jeffbowman
Copy link
Contributor

It definitely belongs in its own module; rational-latex.

Maybe something more generic like rational-writing would be more appropriate. Such a module might include some configuration for blog writing, maybe olivetti, LaTeX, etc.

@bdarcus
Copy link

bdarcus commented Apr 21, 2022

Maybe something more generic like rational-writing would be more appropriate. Such a module might include some configuration for blog writing, maybe olivetti, LaTeX, etc.

True, but LaTeX is only one writing mode, and there's already an org module, which is arguably more widely used in the emacs world for writing.

🤷

Perhaps they could be complementary, so one could couple LaTeX/markdown/org with such a mode.

@jeffbowman
Copy link
Contributor

True, but LaTeX is only one writing mode, and there's already an org module, which is arguably more widely used in the emacs world for writing.

Fair point. No argument from me :-)

Perhaps they could be complementary, so one could couple LaTeX/markdown/org with such a mode.

Ah, markdown mode, I had forgotten that one. But, yes, I like this idea.

(in the interest of not polluting the discussion for this PR, maybe these ideas should go into their own issue...)

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

Successfully merging this pull request may close these issues.

rational ide module
4 participants