Skip to content

Instantly share code, notes, and snippets.

View mattsears's full-sized avatar
👋
Hello friend

Matt Sears mattsears

👋
Hello friend
View GitHub Profile
# A handy way to display lists from collection
def list(stuff, options = {}, &block)
return content_tag(:p, "None") if stuff.nil? || stuff.empty?
content_tag(:ul, stuff.map { |thingie| content_tag(:li, yield(thingie)) }, options)
end
;;----------------------------------------------------------------------------
;; Autocomplete all the things
;;----------------------------------------------------------------------------
(use-package auto-complete
:init
(progn
(ac-config-default)
(setq ac-ignore-case nil)
(add-to-list 'ac-modes 'ruby-mode)