GithubHelp home page GithubHelp logo

.emacs.d's Introduction

My Emacs Config

introduction

可能一生都学不完吧。

evil everywhere

so it is very easy to edit!

.emacs.d's People

Contributors

nasoundead avatar

Stargazers

 avatar Aaron Ji avatar

Watchers

 avatar  avatar

Forkers

shuxiao9058

.emacs.d's Issues

dired setting

(use-package dired+
:init
(setq diredp-hide-details-initially-flag nil)
:config
(diredp-toggle-find-file-reuse-dir 1))

lexical-let

(require-package 'cl-lib)
(eval-when-compile (require 'cl))

code system setting

http://liu233w.github.io/blog/2016/09/29/org-python-windows/

;; 设置编码
(cond
((eq system-type 'windows-nt) ; 或者 (spacemacs/system-is-mswindows)
;;
(set-language-environment "chinese-gbk")
(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'gbk)
;;
(modify-coding-system-alist 'process "*" 'gbk)
(defun liu233w/windows-shell-mode-coding ()
(set-buffer-file-coding-system 'gbk)
(set-buffer-process-coding-system 'gbk 'gbk))
(add-hook 'shell-mode-hook #'liu233w/windows-shell-mode-coding)
(add-hook 'inferior-python-mode-hook #'liu233w/windows-shell-mode-coding)
;;
(defun liu233w//python-encode-in-org-babel-execute (func body params)
"org-babel 执行代码时不会自动编码文件,这里通过动态作用域覆
盖默认选项来编码文件。"
;; 此问题的详细信息请参考:Liu233w/.spacemacs.d#6
(let ((coding-system-for-write 'utf-8))
(funcall func body params)))
(advice-add #'org-babel-execute:python :around
#'liu233w//python-encode-in-org-babel-execute))
;; --
(t
(set-language-environment "UTF-8")
(prefer-coding-system 'utf-8)))

gist

7c127350d1141abbf3873188911cf399cbfd9f44

company setting

(use-package company
:ensure t
:init
(setq company-minimum-prefix-length 2)
(setq company-dabbrev-ignore-case t)
:config
(add-hook 'after-init-hook 'global-company-mode)
(define-key company-active-map (kbd "TAB") 'company-complete-common-or-cycle)
(define-key company-active-map [tab] 'company-complete-common-or-cycle)
(define-key company-active-map (kbd "") 'company-complete-common-or-cycle)

(global-set-key (kbd "C-c y") 'company-yasnippet)
)

use-package

(require 'package)
(setq package-enable-at-startup nil
package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/")
("melpa" . "http://elpa.emacs-china.org/melpa/")
("org" . "http://elpa.emacs-china.org/org/")
("sunrise-commander" . "http://elpa.emacs-china.org/sunrise-commander/")
("user42" . "http://elpa.emacs-china.org/user42/")
))
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
(use-package diminish)

font setting for win7

;;WIn7下使用Emacs-25会遇到卡顿,解决方法为使用 Microsoft YaHei Mono 字体。
(custom-set-faces
'(default ((t (:family "Microsoft YaHei Mono" :foundry "outline" :slant normal :weight normal :height 98 :width normal)))))
;;如使用Microsoft YaHei Mono,则可使用如下设置
;; Chinese Font
(dolist (charset '(kana han symbol cjk-misc bopomofo))
(set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "Microsoft YaHei" :size 14)))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.