我的简单的emacs配置文件

本文详细介绍了一个具体的Emacs配置文件内容,包括如何初始化包管理、设置主题、调整界面元素及快捷键映射等,旨在帮助读者了解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)

转载于:https://www.cnblogs.com/syscon/p/8543984.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值