Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ts is 4 #17

Merged
1 commit merged into from

2 participants

@jlouis

Somewhat debatable: I rather want to get these "modelines" correct rather than discuss what the "right kind of" indentation is :) Please advice on correct settings for you :)

@jlouis jlouis Hint Emacs that the Tab Stop of the files are 4 spaces.
I default the tab-size to 8 here - and many other will do the same. To
avoid trouble, we simply hint Emacs what the intended size of a tab is
(4) and let it handle tabs and spaces. It also opens for dropping more
settings to coerce Emacs into being nice.
44a5bb4
@yrashk
Owner

Fine by me, my settings are:

(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 28, 2011
  1. @jlouis

    Hint Emacs that the Tab Stop of the files are 4 spaces.

    jlouis authored
    I default the tab-size to 8 here - and many other will do the same. To
    avoid trouble, we simply hint Emacs what the intended size of a tab is
    (4) and let it handle tabs and spaces. It also opens for dropping more
    settings to coerce Emacs into being nice.
This page is out of date. Refresh to see the latest.
View
1  src/agner.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner).
-include_lib("agner.hrl").
-export([start/0,stop/0]).
View
1  src/agner_app.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_app).
-behaviour(application).
View
1  src/agner_download.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_download).
-export([fetch/2]).
%% internal exports
View
1  src/agner_github.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_github, [Account]).
-behaviour(agner_index).
-include_lib("agner.hrl").
View
1  src/agner_index.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_index).
-export([behaviour_info/1]).
View
1  src/agner_server.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_server).
-include_lib("agner.hrl").
-include_lib("typespecs/include/typespecs.hrl").
View
1  src/agner_spec.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_spec).
-include_lib("agner.hrl").
-export([parse/1, list_to_version/2, version_to_list/1]).
View
1  src/agner_sup.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_sup).
-behaviour(supervisor).
View
1  src/agner_utils.erl
@@ -1,3 +1,4 @@
+%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_utils).
-export([launch_browser/1]).
Something went wrong with that request. Please try again.