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

Language detection with bpa.st #56

Open
dennissherb opened this issue May 6, 2022 · 1 comment
Open

Language detection with bpa.st #56

dennissherb opened this issue May 6, 2022 · 1 comment

Comments

@dennissherb
Copy link

Language detection doesn't work with bpa.st.
I tried this with C# and emacs-lisp, both cases fail to get detected and get pasted as plain text.

@cpbotha
Copy link

cpbotha commented Apr 10, 2023

You can work around that the following in your init:

  ;; fix emacs-lisp handling for bpa.st, add csharp
  ;; to see list of lexers access https://bpa.st/api/v1/lexer
  (plist-put (cdr (assoc "bpa.st" webpaste-providers-alist))
             :lang-overrides '((emacs-lisp-mode . "emacs-lisp")
                               (csharp-mode . "csharp")
                               (csharp-ts-mode . "csharp")))

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