2021-01-27 22:49:20 +00:00
|
|
|
;;; FG42 --- The mighty editor for the emacsians -*- lexical-binding: t; -*-
|
|
|
|
;;
|
2021-01-29 02:02:14 +00:00
|
|
|
;; Copyright (c) 2010-2021 Sameer Rahmani <lxsameer@gnu.org>
|
2021-01-27 22:49:20 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
|
|
|
;; URL: https://gitlab.com/FG42/FG42
|
|
|
|
;; Version: 3.0.0
|
|
|
|
;;
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
;;
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(defvar fg42-v3 (or (getenv "FG42_V3") '()))
|
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
|
|
|
|
|
2021-01-27 22:49:20 +00:00
|
|
|
(if fg42-v3
|
|
|
|
(add-to-list 'load-path (concat (getenv "FG42_HOME") "/core"))
|
|
|
|
(add-to-list 'load-path (concat (getenv "FG42_HOME") "/lib")))
|
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
;; Prevent package.el to install anything at startup
|
|
|
|
(setq package-enable-at-startup nil)
|
2017-04-07 23:57:24 +01:00
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
(setq custom-file (format "%s/.fg42.custom.el" (getenv "HOME")))
|
|
|
|
(setq user-emacs-directory "~/.fg42/emacs.d")
|
2015-07-07 00:01:24 +01:00
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
(setq user-init-file
|
|
|
|
(format "%s/.fg42.%s"
|
|
|
|
(getenv "HOME")
|
|
|
|
(if fg42-v3
|
|
|
|
"v3.el"
|
|
|
|
"el")))
|
2015-07-09 12:05:26 +01:00
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
(if (file-exists-p custom-file)
|
|
|
|
(load custom-file))
|
2015-07-21 10:05:52 +01:00
|
|
|
|
2021-03-05 16:30:30 +00:00
|
|
|
(require 'fg42)
|
2021-01-27 22:49:20 +00:00
|
|
|
|
|
|
|
(load-user-config
|
|
|
|
(if fg42-v3
|
|
|
|
"~/.fg42.v3.el"
|
|
|
|
"~/.fg42.el"))
|
|
|
|
|
2016-11-28 11:06:35 +00:00
|
|
|
;; NOTE: It's important to use ~/.fg42.el instead of this file
|
|
|
|
;; because updating fg42 will discard your changes in
|
|
|
|
;; this file.
|
2021-03-05 16:30:30 +00:00
|
|
|
(if (not fg42-v3)
|
|
|
|
(fg42-initialize)
|
|
|
|
(fg42/initialize))
|
2021-01-27 22:49:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
(provide 'fg42-config)
|
|
|
|
;;; fg42-config.el ends here
|