78297be625
* Fix various isolated typos "apppend" -> "append" "availabe" -> "available" "Descripti using ternon" -> "Description" "you have not them" -> "you don't have them" "new on" -> "new one" "plained" -> "curved" "repel" -> "REPL" "vairable" -> "variable" * Fix a few errors in the CoffeeScript layer readme Add a missing "the". Correct a reference to the layer as "javascript" to "coffeescript". Fix the syntax on the link to CoffeeLint. * Fix typos: "dofile" -> "dotfile" * Fix typos: "formated" and "formating" "formated" -> "formatted" "formating" -> "formatting" * hy: Fix docstrings in funcs.el Fix copy-and-pasted docstring text for spacemacs/hy-shell-eval-current-form-and-go and spacemacs/hy-shell-eval-region-and-go. * Fix typos: "indendation" -> "indentation" * Fix typos: "the the", "a a" Fix duplicated (or misplaced) articles. * Fix typos: "wether" -> "whether" * Fix typos: "intialize" -> "initialize"
34 lines
1.2 KiB
EmacsLisp
Executable file
34 lines
1.2 KiB
EmacsLisp
Executable file
;;; funcs.el --- rust Layer functions File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: NJBS <DoNotTrackMeUsingThis@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(defun spacemacs/racer-describe ()
|
|
"Show a *Racer Help* buffer for the function or type at point.
|
|
If `help-window-select' is non-nil, also select the help window."
|
|
(interactive)
|
|
(let ((window (racer-describe)))
|
|
(when help-window-select
|
|
(select-window window))))
|
|
|
|
(defun spacemacs/rust-quick-run ()
|
|
"Quickly run a Rust file using rustc.
|
|
Meant for a quick-prototype flow only - use `spacemacs/open-junk-file' to
|
|
open a junk Rust file, type in some code and quickly run it.
|
|
If you want to use third-party crates, create a new project using `cargo-process-new' and run
|
|
using `cargo-process-run'."
|
|
(interactive)
|
|
(let ((input-file-name (buffer-file-name))
|
|
(output-file-name (concat temporary-file-directory (make-temp-name "rustbin"))))
|
|
(compile
|
|
(format "rustc -o %s %s && %s"
|
|
(shell-quote-argument output-file-name)
|
|
(shell-quote-argument input-file-name)
|
|
(shell-quote-argument output-file-name)))))
|