Skip to content

salmanebah/opencl-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

OpenCL Major Mode

https://melpa.org/packages/opencl-mode-badge.svg

This major mode for Emacs provides the following main features:

  • Syntax coloring for OpenCL C kernels, including extra highlighting for address-space qualifiers and built-in functions.
  • The opencl-lookup function (C-c ! d) performs documentation look-up of the string in region or on point.

Installing Using Melpa

Use the following commands to install from Melpa:

  • M-x package-refresh-contents
  • M-x package-install opencl-mode

Alternatively, you can also install the package using e.g. use-package with the following snippet:

(use-package opencl-mode
    :ensure t)

Installing From Source

  1. Get the source code by cloning this repository:
    $ git clone https://github.com/salmanebah/opencl-mode.git
        
  2. Put opencl-c-mode.el in your load-path or add this line to your configuration:
    (add-to-list 'load-path "/path/to/directory/where/opencl-mode.el/resides")
        
  3. Add these lines to your personal configuration file:
    (require 'opencl-mode)
    (add-to-list 'auto-mode-alist '("\\.cl\\'" . opencl-mode))