Giter Site home page Giter Site logo

alhadis / language-emacs-lisp Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 1.0 836 KB

Emacs Lisp and YASnippet support for Atom and GitHub.

Home Page: https://atom.io/packages/language-emacs-lisp

License: ISC License

JavaScript 1.15% Roff 0.16% Perl 0.16% CSON 98.53%
atom syntax-highlighting emacs-lisp emacs-lisp-support yasnippet yasnippets elisp muse amusewiki textmate-grammar

language-emacs-lisp's Introduction

Emacs Lisp Support

Build status: TravisCI Build status: AppVeyor Latest package version

Hand-crafted syntax highlighting and editor commands for Emacs Lisp in Atom.

Atomacs

Commands

This package includes two commands to run Lisp code in Emacs from Atom:

  • language-emacs-lisp:run-selection
  • language-emacs-lisp:run-file

Math: One not even

These aren't attached to any keybindings by default. You'll need to assign them shortcuts yourself.

NOTE: These require Emacs to be in your $PATH, and probably don't work on Windows.

language-emacs-lisp's People

Contributors

alhadis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

waldyrious

language-emacs-lisp's Issues

Muse: support literal HTML

Emacs Muse supported this syntax for literal HTML blocks:

<literal style="html">
<h1>Header</h1>
</literal>

Literal HTML blocks can be highlighted using existing HTML grammar.

Muse: support underline

Emacs Muse supported underline syntax:

This is _underlined_ text

Amusewiki removed it, mostly for the reason that there is no semantic difference between underline and emphasis and underline is usually a typewriter version of emphasis. But for syntax highlighting it may be worth to support both. Also, pandoc supports both Emacs Muse underline and Amusewiki extensions.

Problem with defgeneric and defmethod

Hi,

thank you for your excellent work. I've just noticed that defgeneric, cl-defgeneric, defmethod and cl-defmethod are not recognized as keywords (at least in Github, I haven't checked Atom):

(defgeneric my/entity-name (entity)
  "Return the name of ENTITY.")

(defmethod my/entity-name ((entity person))
  (person-name entity))

(cl-defgeneric my/entity-name (entity)
  "Return the name of ENTITY.")

(cl-defmethod my/entity-name ((entity person))
  (person-name entity))

VS Code Support

I'm not sure how hard or easy it would be to port this package over to VS Code, but I would love to have this package available there. I'm beginning to use VS Code alongside Atom these days and surely miss the Elisp syntax highlighting.

Also, forgive me if there already exists a package and that if one does exist, I simply missed it during my search.

Strings with a percent sign

There seems to be potential issue with the % sign in strings. In the following snippet:

atom

The grammar seems to consider this invalid as it colors both the percent sign and the closing double quote. In GNU Emacs (with emacs-lisp-mode) though this is not the case:

emacs

The string "%" is a valid string in Emacs Lisp. I suppose this grammar tries to identify format specifications which is ofcourse fine but the issue is not every string will be passed to a function which will interpret format specifications.

I happened to run into this issue in one of my commits. As you can see I happen to use a string which ends in %" and it messes up the formatting on GitHub.

Let me know if there's any way I can help.

"View Code" button doesn't work

Not sure what the issue is (if its on my end or a fault of the package), but clicking "view code" in this package's settings does not launch a new instance of atom with the code for this package, as it should. I think this is the only package of mine that has this issue, but I can't conclude where the fault is.

I'm on:
macOS v10.13.6
Atom v1.30.0
language-emacs-lisp v1.3.0

`**foo***bar**` is not highlighted correctly

**foo***bar** is parsed as

<strong>foo</strong><em>bar</em>*

Emacs Muse does not highlight it at all and publishes it as

<strong>foo</strong>*bar**

which seems to be wrong.

Text::Amuse and pandoc compile it to

<strong>foo***bar</strong>

Make a release

Muse highlighting is already good enough for all practical uses, makes sense to tag a release so users can install it.

Muse: "===" is not code

Currently ===foo bar= is parsed as two code spans.

=== should not be treated as markup at all, because opening = should be preceded by whitespace and followed by alphanumeric character. Otherwise, <code> tag should be used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.