Created
May 5, 2017 04:11
-
-
Save Nyoho/709119529d1f485f89d6d17efed36b0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(dolist (dir (list | |
"/usr/local/bin" | |
"/usr/bin" | |
"/bin" | |
"/usr/sbin" | |
"/sbin" | |
(expand-file-name "~/bin") | |
(expand-file-name "~/.emacs.d/bin") | |
)) | |
(when (and (file-exists-p dir) (not (member dir exec-path))) | |
(setenv "PATH" (concat dir ":" (getenv "PATH"))) | |
(setq exec-path (append (list dir) exec-path)))) | |
(require 'package) | |
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) | |
(add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives '("ELPA" . "http://tromey.com/elpa/")) | |
(package-initialize) | |
(setq ns-command-modifier (quote meta)) | |
(setq ns-alternate-modifier (quote super)) | |
(define-key global-map [ns-drag-file] 'ns-find-file) | |
(setq helm-hatena-bookmark-username "Nyoho") | |
(helm-hatena-bookmark-initialize) | |
(global-set-key (kbd "C-c h") 'helm-hatena-bookmark) | |
(global-set-key (kbd "C-c uh") 'hatena-bookmark-get-dump) | |
(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-selected-packages (quote (helm-hatena-bookmark)))) | |
(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. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment