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:
parent
9dd4768a1f
commit
7e58e5c64c
2
dbus.c
2
dbus.c
@ -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
2
dbus.h
@ -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: */
|
||||
|
2
dunst.c
2
dunst.c
@ -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: */
|
||||
|
2
dunst.h
2
dunst.h
@ -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: */
|
||||
|
@ -312,3 +312,5 @@ int main(int argc, char *argv[])
|
||||
|
||||
die(0);
|
||||
}
|
||||
|
||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||
|
2
menu.c
2
menu.c
@ -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
2
menu.h
@ -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: */
|
||||
|
@ -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: */
|
||||
|
@ -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: */
|
||||
|
@ -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: */
|
||||
|
@ -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: */
|
||||
|
2
rules.c
2
rules.c
@ -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: */
|
||||
|
2
rules.h
2
rules.h
@ -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: */
|
||||
|
@ -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: */
|
||||
|
@ -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: */
|
||||
|
2
utils.c
2
utils.c
@ -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: */
|
||||
|
2
utils.h
2
utils.h
@ -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
2
x.c
@ -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: */
|
||||
|
Loading…
x
Reference in New Issue
Block a user