Skip to content

Instantly share code, notes, and snippets.

@jimeh
Created August 31, 2020 20:02
Show Gist options
  • Save jimeh/a7f2fe730f15baec9f8157fe46d1119b to your computer and use it in GitHub Desktop.
Save jimeh/a7f2fe730f15baec9f8157fe46d1119b to your computer and use it in GitHub Desktop.
(setq comp-speed 2)
(setq package-enable-at-startup nil)
(setq straight-cache-autoloads t
straight-check-for-modifications '(check-on-save find-when-checking)
straight-repository-branch "develop"
straight-use-package-by-default t
use-package-always-ensure nil)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el"
user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(use-package smartparens
:defer t
:hook (prog-mode . smartparens-mode)
:config (require 'smartparens-config))
(use-package ruby-mode
:straight (:type built-in)
:bind (:map ruby-mode-map
("C-j" . newline-and-indent)
("RET" . newline-and-indent)))
def hello
puts 'hi'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment