Coder Social home page Coder Social logo

freefem-mode's Introduction

FreeFem++-Mode

An Emacs mode for the FreeFem++ language.

  • It is based on cc mode, from which it inherits its features, including syntax highlighting, automatic indentation (TAB key) and others. Current version (0.3) provides syntax highligting for more FreeFem++ reserved words and additional menu entries.
  • It defines the "Run buffer" function (key C-c C-c) as follows:
    1. Send current buffer (current FreeFem++ program) to the FreeFem++ interpreter.
    2. Then window is split into two frames and FreeFem++ output is displayed in the bottom one.
    3. If FreeFem++ returned with an error:
    • In the output buffer, the error line is highlighted
    • In the code buffer, the cursor goes to the error line and error is highlighted

Install:

Copy the file freefem++-mode.el into any directory located in your Emacs load-path. Then, add the appropriate lines into your .emacs configuration file, for instance:

	(autoload 'freefem++-mode "freefem++-mode"
		"Major mode for editing FreeFem++ code." t)
	(add-to-list 'auto-mode-alist '("\\.edp$" . freefem++-mode))
	(add-to-list 'auto-mode-alist '("\\.idp$" . freefem++-mode))

Optionally, you can also specify the desired FreeFem++ interpreter, for instance

	(setq freefempp-program "FreeFem++-nw")

or

	(setq freefempp-program "ff-mpirun -np 2")

freefem-mode's People

Contributors

rrgalvan avatar

Watchers

 avatar

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.