Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 3.59 KB | None | 0 0
  1.  
  2.  
  3. ;; put customize data here
  4. ;;(setq custom-file (concat user-emacs-directory "custom.el"))
  5. ;;(when (file-exists-p custom-file)
  6. ;;  (load custom-file))
  7.  
  8. ;; personal preferences here
  9. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  10.  
  11. ;; use visual cues instead of system sounds.
  12. (setq visible-bell t)
  13.  
  14. ;; show the time
  15. (display-time-mode 1)
  16.  
  17. ;; change tabs to spaces by default
  18. (setq-default indent-tabs-mode nil)
  19. (setq tab-width 4)
  20.  
  21. ;; go fullscreen
  22. (toggle-frame-fullscreen)
  23.  
  24. ;; set font
  25. (add-to-list 'default-frame-alist '(font . "Latin Modern Mono 10 Regular"))
  26.  
  27. ;;bypass using the meta key
  28. (global-set-key "\C-x\C-m" 'execute-extended-command)
  29. (global-set-key "\C-c\C-m" 'execute-extended-command)
  30.  
  31. ;;mistake convenience
  32. (global-set-key "\C-w" 'backward-kill-word)
  33. (global-set-key "\C-x\C-k" 'kill-region)
  34. (global-set-key "\C-c\C-k" 'kill-region)
  35.  
  36. ;;remove stupid menus
  37. (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
  38. (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
  39. (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
  40.  
  41. ;;irc preferences
  42. (setq rcirc-default-nick "nikitamog")
  43. ;;(add-to-list 'rcirc-server-alist
  44. ;;             '("irc.freenode.net"
  45. ;;               :channels ("#emacs")))
  46.  
  47.  
  48. ;; backup files
  49. (setq backup-directory-alist `(("." . "~/.saves")))
  50.  
  51.  
  52. ;; org-mode
  53. (setq org-clock-persist 'history)
  54. (org-clock-persistence-insinuate)
  55.  
  56. ;; Cedet setup
  57. (load-file (concat user-emacs-directory "/cedet/cedet-devel-load.el"))
  58. (load-file (concat user-emacs-directory "cedet/contrib/cedet-contrib-load.el"))
  59.  
  60. ;; END PERSONAL
  61. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  62.  
  63. ;; PACKAGE REQUIRES
  64. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  65. (add-to-list 'load-path (concat user-emacs-directory "xterm-color"))
  66.  
  67. (add-to-list 'load-path (concat user-emacs-directory "eterm-256color"))
  68. (require 'eterm-256color)
  69.  
  70.  
  71.  
  72.  
  73. ;; Added by Package.el.  This must come before configurations of
  74. ;; installed packages.  Don't delete this line.  If you don't want it,
  75. ;; just comment it out by adding a semicolon to the start of the line.
  76. ;; You may delete these explanatory comments.
  77. (package-initialize)
  78.  
  79.  
  80. (require 'package)
  81. (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
  82.                     (not (gnutls-available-p))))
  83.        (proto (if no-ssl "http" "https")))
  84.   ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  85.   (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  86.   ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  87.   (when (< emacs-major-version 24)
  88.     ;; For important compatibility libraries like cl-lib
  89.     (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
  90. (package-initialize)
  91.  
  92.  
  93.  
  94.  
  95. (custom-set-variables
  96.  ;; custom-set-variables was added by Custom.
  97.  ;; If you edit it by hand, you could mess it up, so be careful.
  98.  ;; Your init file should contain only one such instance.
  99.  ;; If there is more than one, they won't work right.
  100.  '(custom-enabled-themes (quote (solarized-light)))
  101.  '(custom-safe-themes
  102.    (quote
  103.     ("d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" default)))
  104.  '(inhibit-startup-screen nil)
  105.  '(initial-buffer-choice "~/.emacs")
  106.  '(package-selected-packages (quote (solarized-theme))))
  107. (custom-set-faces
  108.  ;; custom-set-faces was added by Custom.
  109.  ;; If you edit it by hand, you could mess it up, so be careful.
  110.  ;; Your init file should contain only one such instance.
  111.  ;; If there is more than one, they won't work right.
  112.  )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement