Add expandtab to vim modelines & expand abbreviations

Add expandtab to vim modelines so that spaces are expanded to tabs, make
life easier for people that have vim configured to use tabs by default.

Expand modeline abbreviations to improve readability.
This commit is contained in:
Nikos Tsipinakis 2016-11-17 20:27:46 +02:00
parent 9dd4768a1f
commit 7e58e5c64c
19 changed files with 24 additions and 14 deletions

2
dbus.c
View File

@ -495,4 +495,4 @@ void dbus_tear_down(int owner_id)
g_bus_unown_name(owner_id);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

2
dbus.h
View File

@ -15,4 +15,4 @@ void actionInvoked(notification * n, const char *identifier);
#endif
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -434,4 +434,4 @@ void print_version(void)
exit(EXIT_SUCCESS);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -45,4 +45,4 @@ char *extract_urls(const char *str);
void context_menu(void);
void wake_up(void);
void pause_signal_handler(int sig);
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -312,3 +312,5 @@ int main(int argc, char *argv[])
die(0);
}
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

2
menu.c
View File

@ -257,4 +257,4 @@ void context_menu(void)
free(dmenu_input);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

2
menu.h
View File

@ -6,3 +6,5 @@ char *extract_urls(const char *to_match);
void open_browser(const char *url);
void invoke_action(const char *action);
void regex_teardown(void);
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -623,4 +623,4 @@ int notification_get_ttl(notification *n) {
int notification_get_age(notification *n) {
return time(NULL) - n->timestamp;
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -67,3 +67,5 @@ char *notification_quote_markup(char *str);
void notification_update_text_to_render(notification *n);
int notification_get_ttl(notification *n);
int notification_get_age(notification *n);
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -473,4 +473,4 @@ char *cmdline_create_usage(void)
return g_strdup(usage_str);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -33,4 +33,4 @@ int option_get_bool(char *ini_section, char *ini_key, char *cmdline_key,
*/
char *next_section(char *section);
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -78,4 +78,4 @@ bool rule_matches_notification(rule_t * r, notification * n)
&& (!r->category || !fnmatch(r->category, n->category, 0))
&& (r->msg_urgency == -1 || r->msg_urgency == n->urgency));
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -34,3 +34,5 @@ void rule_init(rule_t * r);
void rule_apply(rule_t * r, notification * n);
void rule_apply_all(notification * n);
bool rule_matches_notification(rule_t * r, notification * n);
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -402,4 +402,4 @@ void load_settings(char *cmdline_config_path)
}
#endif
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -66,3 +66,5 @@ typedef struct _settings {
extern settings_t settings;
void load_settings(char *cmdline_config_path);
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -147,4 +147,4 @@ void die(char *text, int exit_value)
exit(exit_value);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

View File

@ -26,4 +26,4 @@ void die(char *msg, int exit_value);
int digit_count(int i);
#endif
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

2
x.c
View File

@ -1420,4 +1420,4 @@ void x_shortcut_init(keyboard_shortcut * ks)
free(str_begin);
}
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */

2
x.h
View File

@ -82,4 +82,4 @@ gboolean x_mainloop_fd_check(GSource * source);
gboolean x_mainloop_fd_prepare(GSource * source, gint * timeout);
#endif
/* vim: set ts=8 sw=8 tw=0: */
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */