changeset 856:1c3f6daa1190

require package
author Jeff Hammel <k0scist@gmail.com>
date Fri, 22 Dec 2017 14:10:15 -0800
parents 8e41e95aac97
children 977b5789cfe8
files .emacs
diffstat 1 files changed, 12 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/.emacs	Sun Dec 17 12:48:43 2017 -0800
+++ b/.emacs	Fri Dec 22 14:10:15 2017 -0800
@@ -1,3 +1,15 @@
+(require 'package)
+(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.
+ '(package-archives
+   (quote
+    (("gnu" . "http://elpa.gnu.org/packages/")
+     ("melpa-stable" . "http://stable.melpa.org/packages/")))))
+(package-initialize)
+
 (setq max-specpdl-size 5000)
 
 (setq initial-scratch-message ";; scratch ;;
@@ -10,20 +22,6 @@
 ;; frames: http://www.emacswiki.org/emacs/GnuClient#toc6
 (setq gnuserv-frame (selected-frame))
 
-;; ;; ;; emacs server (what a piece of crap)
-;; (require 'server)
-;;   (unless (server-running-p)
-;;     (server-start))
-;; ;; ;; An error has occurred while loading `/home/jhammel/.emacs':
-;; ;; ;; Symbol's function definition is void: server-running-p
-;; ;; ;; To ensure normal operation, you should investigate and remove the
-;; ;; ;; cause of the error in your initialization file.  Start Emacs with
-;; ;; ;; the `--debug-init' option to view a complete error backtrace.
-
-;; ;; ;; For information about GNU Emacs and the GNU system, type C-h C-a.
-;; ;; How to fix:
-;; http://stackoverflow.com/questions/9999320/how-to-check-if-a-function-e-g-server-running-p-is-available-under-emacs
-
 ;;;; bars
 
 ;; Turn off the status bar and on the mouse if we're not in a window system