-
-
Save tonini/acc154a1d8d182a487bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ELPA setup | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/")) | |
(package-initialize) | |
;; Company setup | |
;; http://company-mode.github.io/ | |
(require 'company) | |
(global-company-mode 1) | |
(setq company-idle-delay 0.1) | |
(setq company-tooltip-limit 10) | |
(setq company-minimum-prefix-length 2) | |
(setq company-tooltip-flip-when-above t) | |
;; Elixir setup | |
(require 'elixir-mode) | |
(require 'alchemist) | |
;; Path to the elixir and erlang source directory | |
;; (setq alchemist-goto-elixir-source-dir "~/Projects/elixir/") | |
;; (setq alchemist-goto-erlang-source-dir "~/Projects/otp_src_17.4/") | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(ansi-color-faces-vector | |
[default default default italic underline success warning error]) | |
'(ansi-color-names-vector | |
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"]) | |
'(custom-enabled-themes (quote (misterioso)))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) | |
(defun get-default-height () | |
(/ (- (display-pixel-height) 120) | |
(frame-char-height))) | |
(add-to-list 'default-frame-alist '(width . 140)) | |
(add-to-list 'default-frame-alist (cons 'height (get-default-height))) | |
;;(add-hook 'after-init-hook 'global-company-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment