This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/octave/packages.el
2016-01-31 23:39:25 -05:00

32 lines
911 B
EmacsLisp

;;; packages.el --- Octave Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq octave-packages
'(
octave
))
(defun octave/init-octave ()
(use-package octave
:mode ("\\.m\\'" . octave-mode)
:commands (run-octave)
:init (spacemacs/register-repl 'octave 'run-octave "octave")
:config (spacemacs/set-leader-keys-for-major-mode 'octave-mode
;; helpers
"hh" 'octave-help
"hi" 'octave-lookfor
;; REPL
"'" 'run-octave
"sb" 'octave-send-buffer
"sf" 'octave-send-defun
"si" 'run-octave
"sl" 'octave-send-line
"sr" 'octave-send-region)))