From: Ramakrishnan Muthukrishnan Date: Sun, 28 Dec 2014 02:36:39 +0000 (+0530) Subject: c style X-Git-Url: https://git.rkrishnan.org/specifications/components/com_hotproperty/flags/provisioning?a=commitdiff_plain;h=0d6cb24576aa85631a446f460a6842e9513e80b3;p=.emacs.d.git c style --- diff --git a/init.el b/init.el index cb5f497..f7b0148 100644 --- a/init.el +++ b/init.el @@ -1,4 +1,4 @@ -;; Prevent the cursor from blinking +; Prevent the cursor from blinking (blink-cursor-mode 0) (show-paren-mode 1) ;; y-or-n instead of yes-or-no @@ -53,13 +53,12 @@ ;; erc (require 'erc) (require 'tls) -(setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof")) +;; (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof")) (erc-autojoin-mode t) (setq erc-autojoin-channels-alist '((".*\\.freenode.net" "#haskell-beginners") - (".*\\.oftc.net" "#LeastAuthority") - (".*\\.saju.net.in" "#cs"))) + (".*\\.oftc.net" "#LeastAuthority"))) ;; check channels (erc-track-mode t) @@ -74,8 +73,7 @@ (interactive) (when (y-or-n-p "Do you want to start IRC? ") (erc-tls :server "irc.freenode.net" :port 6697 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan") - (erc-tls :server "irc.oftc.net" :port 6697 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan") - (erc-tls :server "saju.net.in" :port 6697 :nick "ramki" :full-name "Ramakrishnan Muthukrishnan"))) + (erc-tls :server "irc.oftc.net" :port 6697 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan"))) ;; switch to ERC with Ctrl+c e (global-set-key (kbd "C-c e") 'start-erc) ;; ERC @@ -109,3 +107,8 @@ ;; show trailing whitespaces (setq-default show-trailing-whitespace t) (setq-default indicate-empty-lines t) + +;; C style +(setq c-default-style "k&r" + c-basic-offset 4) +