[Outofthebox] tab vs notab

Angelo Dell'Aera buffer at olografix.org
Wed Sep 28 03:28:58 CEST 2005


On Wed, 28 Sep 2005 02:29:23 +0200
rubik <rubik at olografix.org> wrote:

> Per ravvivare questa lista, propongo una bella guerra di religione
> estremamente geek.
> 
> Questo punto di vista:
> http://www.adamspiers.org/computing/why_no_tabs.html
> 
> Contro questo:
> http://derkarl.org/why_to_tabs.html
> 
> Dai,  vediamo chi vince :)


Rispondo coi fatti.

1. Il primo comando che mi ritrovo a dare prima di leggere un codice
scritto coi piedi stilisticamente?

indent --indent-level8  --k-and-r-style *.c

2. Come mi piace vedere il codice venire fuori dalle mie dita?

buffer at mintaka ~ $ cat .emacs
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!  ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(current-language-environment "English")
 '(global-font-lock-mode t nil (font-lock)))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

(defun linux-c-mode ()
  "C mode with adjusted defaults for use with the Linux kernel."
  (interactive)
  (c-mode)
  (c-set-style "K&R")
  (setq tab-width 8)
  (setq indent-tabs-mode t)
  (setq c-basic-offset 8))

(setq auto-mode-alist (cons '("/usr/src/linux.*/.*\\.[ch]$" .
linux-c-mode)                        auto-mode-alist))

(setq auto-mode-alist (cons '("/home/buffer.*/.*\\.[ch]$" .
linux-c-mode)                        auto-mode-alist))

3. Se dovessero chiedermi se ho usato piu' volte il TAB o il cervello
mentre ero in Emacs direi sicuramente la prima.

E non aggiungo altro...

-- 

Angelo Dell'Aera 'buffer' 
Antifork Research, Inc.	  	http://buffer.antifork.org
Metro Olografix

PGP information in e-mail header


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.olografix.org/pipermail/outofthebox/attachments/20050928/a3e72724/attachment-0002.bin>


More information about the Outofthebox mailing list