Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bodil/lolcode-mode
LOLCODE mode for Emacs.
https://github.com/bodil/lolcode-mode
Last synced: about 1 month ago
JSON representation
LOLCODE mode for Emacs.
- Host: GitHub
- URL: https://github.com/bodil/lolcode-mode
- Owner: bodil
- Created: 2011-06-12T12:38:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-07T21:00:07.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T12:19:15.991Z (7 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 126 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lolcode-mode
============A major mode for editing LOLCODE.
Copyright (C) 2011 Bodil Stokke
License
-------This file is not part of GNU Emacs.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110.Commentary
----------This is a major mode for editing LOLCODE, with the following
features:* Syntax highlighting.
* Smart indentation.
* Execution of LOLCODE buffers (press `C-c C-c`).Installation
------------Put this file somewhere in your load-path, and put the following in
your .emacs:(require 'lolcode-mode)
You may want to install a LOLCODE interpreter. This package comes
preconfigured for lci, which you can get from .
Configuration
-------------This is an example setup which integrates lolcode-mode with
auto-complete-mode and yasnippet. It also sets default indentation
to 2 spaces.(require 'lolcode-mode)
(require 'auto-complete)
(defvar ac-source-lolcode
'((candidates . lolcode-lang-all)))
(add-to-list 'ac-modes 'lolcode-mode)
(add-hook 'lolcode-mode-hook
(lambda ()
(setq default-tab-width 2)
(add-to-list 'ac-sources 'ac-source-lolcode)
(add-to-list 'ac-sources 'ac-source-yasnippet)))