mattt-b / odin-mode

Emacs major mode for the Odin programming language
28 stars 12 forks source link

Please, can anyone explain how can I install this plugin on openSuse Linux? #9

Closed joaocarvalhoopen closed 1 year ago

joaocarvalhoopen commented 1 year ago

Hello,

please, can anyone explain how I install this plugin on openSuse Linux in Doom Emacs.

Best regards, João Carvalho

mattt-b commented 1 year ago

I do not use Doom Emacs, so I'm not really sure how it differs.

I use straight and use-package to install it:

;; Not verbatim what I use, since I use flycheck as well, but I think this should work
(use-package odin-mode
  :straight (odin-mode :type git :host github
                       :repo "mattt-b/odin-mode"))

Before I used straight I just made a local directory for packages and copy/pasted the file into it using use-package load-path.

(add-to-list 'load-path "~/.emacs.d/local/")
(use-package odin-mode
  :load-path "local/")