Skip to content

Example Emacs Config

DavidAustinNix edited this page Jan 22, 2016 · 4 revisions

The following worked on RedHat and might help other first timers like me:

  1. Download the snakemake-mode https://github.com/kyleam/snakemake-mode
  2. If needed create this folder ~/.emacs.d/lisp/ and put the snakemake-mode.elc file in it
  3. If needed create and then add the following to your emacs config script ~/.emacs

;; Tell emacs where is your personal elisp lib dir
(add-to-list 'load-path "~/.emacs.d/lisp/")
;; load the named packaged
(load "snakemake-mode")
;; define what files should open automatically in snakemake-mode, I'm using xxx.sm for these
(add-to-list 'auto-mode-alist '("\.sm\'" . snakemake-mode))

  1. Launch an emacs session "emacs myFabulousSnakemakeScript.sm"
Clone this wiki locally