|
|
|
@ -19,7 +19,9 @@ There are two things you can do about this warning:
|
|
|
|
|
(when (< emacs-major-version 24) |
|
|
|
|
;; For important compatibility libraries like cl-lib |
|
|
|
|
(add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/"))))) |
|
|
|
|
(package-initialize) |
|
|
|
|
|
|
|
|
|
(when (< emacs-major-version 27) |
|
|
|
|
(package-initialize)) |
|
|
|
|
|
|
|
|
|
(add-to-list 'package-archives |
|
|
|
|
'("melpa-stable" . "https://stable.melpa.org/packages/") t) |
|
|
|
@ -45,6 +47,17 @@ There are two things you can do about this warning:
|
|
|
|
|
(setq inhibit-startup-screen t) |
|
|
|
|
|
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Emacs 27+ Configs |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
;; Set the directory to the home directory. This has the side effect of making |
|
|
|
|
;; emacs load files from the home directory when called as emacs -nw xyz. |
|
|
|
|
(when (>= emacs-major-version 27) |
|
|
|
|
(setq default-directory "~/") |
|
|
|
|
(setq command-line-default-directory "~/")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
;; Display battery life in modeline |
|
|
|
|
;;-------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
@ -119,7 +132,7 @@ There are two things you can do about this warning:
|
|
|
|
|
(name . "\*info\*"))) |
|
|
|
|
("Dired" (mode . dired-mode)) |
|
|
|
|
;; Dev has groups for all languages you program in |
|
|
|
|
("Dev" (or (mode . cc-mode) |
|
|
|
|
("Dev" (or |
|
|
|
|
(filename . ".c") |
|
|
|
|
(filename . ".cpp") |
|
|
|
|
(filename . ".hpp") |
|
|
|
@ -304,13 +317,6 @@ There are two things you can do about this warning:
|
|
|
|
|
(require 'rvm) |
|
|
|
|
(rvm-use-default) |
|
|
|
|
|
|
|
|
|
(add-hook 'ruby-mode-hook 'robe-mode) |
|
|
|
|
|
|
|
|
|
(eval-after-load 'company |
|
|
|
|
'(push 'company-robe company-backends)) |
|
|
|
|
|
|
|
|
|
(add-hook 'robe-mode-hook 'ac-robe-setup) |
|
|
|
|
|
|
|
|
|
(advice-add 'inf-ruby-console-auto :before #'rvm-activate-corresponding-ruby) |
|
|
|
|
|
|
|
|
|
;;;;;;;;;;; C/C++ |
|
|
|
@ -383,10 +389,16 @@ There are two things you can do about this warning:
|
|
|
|
|
;; 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. |
|
|
|
|
'(lisp-indent-function (quote common-lisp-indent-function)) |
|
|
|
|
'(lisp-indent-function 'common-lisp-indent-function) |
|
|
|
|
'(package-selected-packages |
|
|
|
|
(quote |
|
|
|
|
(arjen-grey-theme oceanic-theme company-lsp projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag)))) |
|
|
|
|
'(arjen-grey-theme oceanic-theme company-lsp projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag)) |
|
|
|
|
'(safe-local-variable-values |
|
|
|
|
'((eval setq flycheck-command-wrapper-function |
|
|
|
|
(lambda |
|
|
|
|
(command) |
|
|
|
|
(append |
|
|
|
|
'("bundle" "exec") |
|
|
|
|
command)))))) |
|
|
|
|
|
|
|
|
|
(custom-set-faces |
|
|
|
|
;; custom-set-faces was added by Custom. |
|
|
|
|