From 398d66160a379ba59e4905460eb6197f95a88483 Mon Sep 17 00:00:00 2001 From: taptap Date: Sat, 12 May 2018 15:54:15 +0300 Subject: [PATCH] small fixes * use /usr/bin/sbcl instead of /usr/local/bin/sbcl * remove rtags start-process-hooks, since I prefer to start rdm manually * set browse-url-firefox-program to firefox instead of firefox-bin * compact ERC settings a bit * fix bug with missing 0 in (c-set-offset 'innamespace 0) --- .emacs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.emacs b/.emacs index a8511ac..a097d05 100755 --- a/.emacs +++ b/.emacs @@ -6,7 +6,7 @@ (setq-default indent-tabs-mode nil) (setq slime-lisp-implementations - '((sbcl ("/usr/local/bin/sbcl")))) + '((sbcl ("/usr/bin/sbcl")))) (setq slime-contribs '(slime-fancy)) (require 'cl) @@ -45,8 +45,6 @@ (use-package rtags :config - (add-hook 'c-mode-hook 'rtags-start-process-unless-running) - (add-hook 'c++-mode-hook 'rtags-start-process-unless-running) (rtags-enable-standard-keybindings)) (use-package helm-rtags @@ -87,8 +85,9 @@ (electric-indent-mode -1) (setq default-input-method "russian-computer" + browse-url-browser-function 'browse-url-firefox browse-url-firefox-new-window-is-tab t - browse-url-firefox-program "firefox-bin" + browse-url-firefox-program "firefox" ring-bell-function 'ignore mouse-yank-at-point t inhibit-startup-screen t @@ -103,13 +102,10 @@ (add-hook 'before-save-hook 'delete-trailing-whitespace) -;;; ERC settings -;; Kill buffers for channels after /part -(setq erc-kill-buffer-on-part t) -;; Kill buffers for private queries after quitting the server -(setq erc-kill-queries-on-quit t) -;; Kill buffers for server messages after quitting the server -(setq erc-kill-server-buffer-on-quit t) +;;; ERC +(setq erc-kill-buffer-on-part t + erc-kill-queries-on-quit t + erc-kill-server-buffer-on-quit t) (setq custom-file "~/.emacs.d/custom.el") (load custom-file) @@ -119,4 +115,4 @@ (lambda () (c-set-offset 'case-label 0) (c-set-offset 'inline-open 0) - (c-set-offset 'innamespace))) + (c-set-offset 'innamespace 0)))