Update freebsd emacs

This commit is contained in:
Rawley 2022-12-01 14:59:34 -06:00 committed by GitHub
parent 72c4124742
commit de43d96a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
(unless (package-installed-p 'use-package)
@ -13,7 +43,7 @@
;; Packages
(use-package org)
(use-package modus-themes)
(load-theme 'modus-operandi t)
(use-package heroku-theme)
(require 'ido)
(ido-mode 1)
@ -31,6 +61,8 @@
(smex-initialize)
(global-set-key (kbd "M-x") 'smex))
(use-package go-mode)
;; Enable scala-mode for highlighting, indentation and motion commands
(use-package scala-mode
:interpreter ("scala" . scala-mode))
@ -53,8 +85,26 @@
(setq utop-commands "opam config exec -- utop -emacs")
;;;; Perl
(use-package raku-mode)
(fset 'perl-mode 'cperl-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)
;;; .emacs ends here