我的简单的emacs配置文件

Posted syscon

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的简单的emacs配置文件相关的知识,希望对你有一定的参考价值。


;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don‘t delete this line.  If you don‘t want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(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 (quote (misterioso)))
 ‘(custom-safe-themes
   (quote
    ("6ee6f99dc6219b65f67e04149c79ea316ca4bcd769a9e904030d38908fd7ccf9" "4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
 ‘(inhibit-startup-screen t)
 ‘(package-selected-packages
   (quote
    (multi-term w3m cnfonts window-numbering darkokai-theme color-theme-sanityinc-solarized)))
 ‘(show-paren-mode t)
 ‘(tool-bar-mode nil))
(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.
 ‘(default ((t (:family "Monaco" :foundry "unknown" :slant normal :weight normal :height 120 :width normal)))))




(tool-bar-mode 0)
(menu-bar-mode 0)
(scroll-bar-mode 0)
(show-paren-mode t)
(global-linum-mode 1)
(window-numbering-mode t)
(set-frame-parameter (selected-frame) ‘alpha (list 95 95))
(add-to-list ‘default-frame-alist (cons ‘alpha (list 95 95)))
(add-to-list ‘custom-theme-load-path "~/.emacs.d/themes/")
;;(setq molokai-theme-kit t)
;;(load-theme ‘monokai t)
;;(setq sanityinc-solarized-dark-theme-kit t)
(load-theme ‘sanityinc-solarized-dark)
;;(load-theme ‘darkokai)
(setq-default cursor-type ‘blink)

;;(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.
;; ‘(default ((t (:inherit nil :stipple nil :background "#242634" :foreground "#F8F8F2")))))
(setq x-select-enable-clipboard-manager nil)
(put ‘downcase-region ‘disabled nil)
(setq c-default-style
      ‘((java-mode . "java")(other . "awk")))
;;;windowmove-mode
(when (fboundp ‘windmove-default-keybindings)
  (windmove-default-keybindings)
  (global-set-key (kbd "C-c b")  ‘windmove-left)
  (global-set-key (kbd "C-c f") ‘windmove-right)
  (global-set-key (kbd "C-c p")    ‘windmove-up)
  (global-set-key (kbd "C-c n") ‘windmove-down))

;;(set-frame-width (selected-frame) 100)
;;(set-frame-height (selected-frame) 47)

;; 把C-j绑定到到达指定行上 
(global-set-key (kbd "C-x C-j") ‘goto-line) 

(require ‘package)
(add-to-list ‘package-archives 
             ‘("melpa" . "http://melpa.org/packages/"))
(package-initialize)

;;(set-default-font "Monaco-14")  

(global-set-key (kbd "C-x t") ‘multi-term)

(display-time-mode 1) ;; 常显
;;(setq display-time-24hr-format t) ;;格式
(setq display-time-day-and-date t) ;;显示时间、星期、日期

darkai, monokai. sanityinc-solarized-dark主题请到emacs官方扩展管理器上下载。(M-x package-list-packages)

以上是关于我的简单的emacs配置文件的主要内容,如果未能解决你的问题,请参考以下文章

我的emacs配置

YASnippet - emacs 的代码片段管理工具

Emacs flycheck插件配置中遇到的若干问题

Emacs简单配置

启动 emacs 时覆盖 .emacs 配置

Emacs的简单配置与常用快捷键