some cleanup

master
Josha von Gizycki 6 years ago
parent a2e1b5c58d
commit 786f67041c

@ -3,30 +3,6 @@
'("melpa-stable" . "http://stable.melpa.org/packages/") t) '("melpa-stable" . "http://stable.melpa.org/packages/") t)
(package-initialize) (package-initialize)
(defvar my-packages
'(better-defaults projectile clojure-mode cider))
(dolist (p my-packages)
(unless (package-installed-p p)
(package-install p)))
(require 'rcirc)
(add-hook 'rcirc-mode-hook
(lambda ()
(set (make-local-variable 'scroll-conservatively)
8192)))
(setq rcirc-default-nick "jsha")
(setq rcirc-default-user-name "jsha")
(setq rcirc-default-full-name "jsha")
(setq rcirc-server-alist
'(("irc.quakenet.org" :channels ("#warofmadness"))
("irc.freenode.org" :channels ("#stratum0"))))
(global-set-key (kbd "C-x g") 'magit-status)
(global-linum-mode)
; (windmove-default-keybindings)
; (git-auto-commit-mode)
(defun indent-buffer () (defun indent-buffer ()
(interactive) (interactive)
(save-excursion (save-excursion
@ -45,8 +21,11 @@
(add-hook 'lisp-mode-hook #'enable-paredit-mode) (add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode) (add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer #'enable-paredit-mode) (add-hook 'eval-expression-minibuffer #'enable-paredit-mode)
(add-hook 'clojure-mode-hook #'enable-paredit-mode #'hs-minor-mode) (add-hook 'clojure-mode-hook #'enable-paredit-mode)
(add-hook 'clojure-mode-hook #'hs-minor-mode)
(add-hook 'clojure-mode-hook #'company-mode)
(add-hook 'less-css-mode-hook #'hs-minor-mode) (add-hook 'less-css-mode-hook #'hs-minor-mode)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables was added by Custom.
@ -58,7 +37,7 @@
'(custom-enabled-themes (quote (misterioso))) '(custom-enabled-themes (quote (misterioso)))
'(package-selected-packages '(package-selected-packages
(quote (quote
(less-css-mode sass-mode paredit markdown-mode hy-mode yaml-mode editorconfig php-mode magit auto-complete parinfer git-commit rainbow-delimiters cyberpunk-theme flatui-dark-theme paper-theme cider clojure-mode projectile better-defaults)))) (ac-cider company js3-mode less-css-mode sass-mode paredit markdown-mode yaml-mode editorconfig auto-complete parinfer git-commit cider clojure-mode projectile better-defaults))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
@ -67,26 +46,4 @@
'(default ((t (:inherit nil :stipple nil :background "#2d3743" :foreground "#e1e1e0" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 128 :width normal :foundry "DAMA" :family "Ubuntu Mono"))))) '(default ((t (:inherit nil :stipple nil :background "#2d3743" :foreground "#e1e1e0" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 128 :width normal :foundry "DAMA" :family "Ubuntu Mono")))))
(global-auto-complete-mode) (global-auto-complete-mode)
(global-linum-mode)
;; CUA OS copypasta even in ncurses mode
;case system-type
; ('darwin (unless window-system
; (setq interprogram-cut-function
; (lambda (text &optional push)
; (let* ((process-connection-type nil)
; (pbproxy (start-process "pbcopy" "pbcopy" "/usr/bin/pbcopy")))
; (process-send-string pbproxy text)
; (process-send-eof pbproxy))))))
; ('gnu/linux (progn
; (setq x-select-enable-clipboard t)
; (defun xsel-cut-function (text &optional push)
; (with-temp-buffer
; (insert text)
; (call-process-region (point-min) (point-max) "xsel" nil 0 nil "--clipboard" "--input")))
; (defun xsel-paste-function()
;
; (let ((xsel-output (shell-command-to-string "xsel --clipboard --output")))
; (unless (string= (car kill-ring) xsel-output)
; xsel-output )))
; (setq interprogram-cut-function 'xsel-cut-function)
; (setq interprogram-paste-function 'xsel-paste-function))))

Loading…
Cancel
Save