Update freebsd emacs
This commit is contained in:
parent
72c4124742
commit
de43d96a45
1 changed files with 51 additions and 1 deletions
|
@ -1,3 +1,33 @@
|
||||||
|
;;; package --- Rawley's FreeBSD .emacs
|
||||||
|
;;; Commentary:
|
||||||
|
;;; This is my .emacs for FreeBSD.
|
||||||
|
;;; Available with my other dotfiles at: https://github.com/rawleyfowler/dotfiles
|
||||||
|
;;; Code:
|
||||||
|
(add-to-list 'default-frame-alist '(font . "FiraCode-11"))
|
||||||
|
|
||||||
|
(unless (file-exists-p "~/.auto-save")
|
||||||
|
(make-directory "~/.auto-save"))
|
||||||
|
(defvar autosave-dir (concat "~/.auto-save" "/")) ; Auto save path
|
||||||
|
(make-directory autosave-dir t)
|
||||||
|
(setq auto-save-file-name-transforms
|
||||||
|
`(("\\(?:[^/]*/\\)*\\(.*\\)" ,(concat autosave-dir "\\1") t)))
|
||||||
|
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
(setq visible-bell nil)
|
||||||
|
(setq ring-bell-function 'ignore)
|
||||||
|
(setq shell-file-name "bash")
|
||||||
|
(setq shell-command-switch "-ic")
|
||||||
|
(setq-default tab-width 4)
|
||||||
|
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(show-paren-mode 1)
|
||||||
|
(recentf-mode 1)
|
||||||
|
|
||||||
|
(require 'package)
|
||||||
|
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
||||||
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(unless (package-installed-p 'use-package)
|
(unless (package-installed-p 'use-package)
|
||||||
|
@ -13,7 +43,7 @@
|
||||||
;; Packages
|
;; Packages
|
||||||
(use-package org)
|
(use-package org)
|
||||||
(use-package modus-themes)
|
(use-package modus-themes)
|
||||||
(load-theme 'modus-operandi t)
|
(use-package heroku-theme)
|
||||||
|
|
||||||
(require 'ido)
|
(require 'ido)
|
||||||
(ido-mode 1)
|
(ido-mode 1)
|
||||||
|
@ -31,6 +61,8 @@
|
||||||
(smex-initialize)
|
(smex-initialize)
|
||||||
(global-set-key (kbd "M-x") 'smex))
|
(global-set-key (kbd "M-x") 'smex))
|
||||||
|
|
||||||
|
(use-package go-mode)
|
||||||
|
|
||||||
;; Enable scala-mode for highlighting, indentation and motion commands
|
;; Enable scala-mode for highlighting, indentation and motion commands
|
||||||
(use-package scala-mode
|
(use-package scala-mode
|
||||||
:interpreter ("scala" . scala-mode))
|
:interpreter ("scala" . scala-mode))
|
||||||
|
@ -53,8 +85,26 @@
|
||||||
(setq utop-commands "opam config exec -- utop -emacs")
|
(setq utop-commands "opam config exec -- utop -emacs")
|
||||||
|
|
||||||
;;;; Perl
|
;;;; Perl
|
||||||
|
(use-package raku-mode)
|
||||||
(fset 'perl-mode 'cperl-mode)
|
(fset 'perl-mode 'cperl-mode)
|
||||||
(add-hook 'cperl-mode-hook 'flycheck-mode)
|
(add-hook 'cperl-mode-hook 'flycheck-mode)
|
||||||
|
|
||||||
|
(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.
|
||||||
|
'(custom-enabled-themes '(heroku))
|
||||||
|
'(custom-safe-themes
|
||||||
|
'("1fd08ade58dee9f19d44b5cef8336044d1426572f9330998e23c1bf2471da182" default))
|
||||||
|
'(package-selected-packages
|
||||||
|
'(heroku-theme raku-mode go-mode yasnippet-snippets yaml-mode utop use-package smex scala-mode rescript-mode reason-mode ocamlformat modus-themes haml-mode dune dumb-jump dockerfile-mode docker)))
|
||||||
|
(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.
|
||||||
|
)
|
||||||
|
|
||||||
(provide '.emacs)
|
(provide '.emacs)
|
||||||
;;; .emacs ends here
|
;;; .emacs ends here
|
||||||
|
|
Loading…
Reference in a new issue