Merge pull request #774 from fwSmit/vim-modeline
Add filetype to vim modeline
This commit is contained in:
commit
3001f79fc3
2
config.h
2
config.h
@ -141,4 +141,4 @@ struct rule default_rules[] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -364,4 +364,4 @@ int main(int argc, char *argv[])
|
|||||||
die(0);
|
die(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
2
main.c
2
main.c
@ -4,4 +4,4 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
return dunst_main(argc, argv);
|
return dunst_main(argc, argv);
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -847,4 +847,4 @@ void dbus_teardown(int owner_id)
|
|||||||
g_bus_unown_name(owner_id);
|
g_bus_unown_name(owner_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -22,4 +22,4 @@ void signal_notification_closed(struct notification *n, enum reason reason);
|
|||||||
void signal_action_invoked(const struct notification *n, const char *identifier);
|
void signal_action_invoked(const struct notification *n, const char *identifier);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -716,4 +716,4 @@ void draw_deinit(void)
|
|||||||
x_win_destroy(win);
|
x_win_destroy(win);
|
||||||
x_free();
|
x_free();
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -13,4 +13,4 @@ void draw_rounded_rect(cairo_t *c, int x, int y, int width, int height, int corn
|
|||||||
void draw_deinit(void);
|
void draw_deinit(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -229,4 +229,4 @@ void print_version(void)
|
|||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -41,4 +41,4 @@ void usage(int exit_status);
|
|||||||
void print_version(void);
|
void print_version(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -367,4 +367,4 @@ GdkPixbuf *icon_get_for_data(GVariant *data, char **id)
|
|||||||
return pixbuf;
|
return pixbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -58,4 +58,4 @@ GdkPixbuf *icon_get_for_name(const char *name, char **id);
|
|||||||
GdkPixbuf *icon_get_for_data(GVariant *data, char **id);
|
GdkPixbuf *icon_get_for_data(GVariant *data, char **id);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -98,4 +98,4 @@ void dunst_log_init(bool testing)
|
|||||||
g_log_set_default_handler(dunst_log_handler, (void*)testing);
|
g_log_set_default_handler(dunst_log_handler, (void*)testing);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -45,4 +45,4 @@ void log_set_level_from_string(const char* level);
|
|||||||
void dunst_log_init(bool testing);
|
void dunst_log_init(bool testing);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -338,4 +338,4 @@ char *markup_transform(char *str, enum markup_mode markup_mode)
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -48,4 +48,4 @@ void markup_strip_img(char **str, char **urls);
|
|||||||
char *markup_transform(char *str, enum markup_mode markup_mode);
|
char *markup_transform(char *str, enum markup_mode markup_mode);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -362,4 +362,4 @@ static gpointer context_menu_thread(gpointer data)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -21,4 +21,4 @@ void regex_teardown(void);
|
|||||||
void context_menu(void);
|
void context_menu(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -619,4 +619,4 @@ void notification_invalidate_actions(struct notification *n) {
|
|||||||
g_hash_table_remove_all(n->actions);
|
g_hash_table_remove_all(n->actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -212,4 +212,4 @@ const char *notification_urgency_to_string(const enum urgency urgency);
|
|||||||
const char *enum_to_string_fullscreen(enum behavior_fullscreen in);
|
const char *enum_to_string_fullscreen(enum behavior_fullscreen in);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -716,4 +716,4 @@ const char *cmdline_create_usage(void)
|
|||||||
return usage_str;
|
return usage_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -86,4 +86,4 @@ int option_get_bool(const char *ini_section,
|
|||||||
const char *next_section(const char *section);
|
const char *next_section(const char *section);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -550,4 +550,4 @@ void queues_teardown(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -164,4 +164,4 @@ struct notification* queues_get_by_id(int id);
|
|||||||
void queues_teardown(void);
|
void queues_teardown(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -106,4 +106,4 @@ bool rule_matches_notification(struct rule *r, struct notification *n)
|
|||||||
&& rule_field_matches_string(n->category, r->category)
|
&& rule_field_matches_string(n->category, r->category)
|
||||||
&& rule_field_matches_string(n->stack_tag, r->stack_tag);
|
&& rule_field_matches_string(n->stack_tag, r->stack_tag);
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -52,4 +52,4 @@ void rule_apply_all(struct notification *n);
|
|||||||
bool rule_matches_notification(struct rule *r, struct notification *n);
|
bool rule_matches_notification(struct rule *r, struct notification *n);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -787,4 +787,4 @@ void load_settings(char *cmdline_config_path)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -99,4 +99,4 @@ extern struct settings settings;
|
|||||||
void load_settings(char *cmdline_config_path);
|
void load_settings(char *cmdline_config_path);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -247,4 +247,4 @@ const char *user_get_home(void)
|
|||||||
return home_directory;
|
return home_directory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -138,4 +138,4 @@ gint64 time_monotonic_now(void);
|
|||||||
const char *user_get_home(void);
|
const char *user_get_home(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -439,4 +439,4 @@ static int FollowXErrorHandler(Display *display, XErrorEvent *e)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -45,4 +45,4 @@ bool have_fullscreen_window(void);
|
|||||||
bool window_is_fullscreen(Window window);
|
bool window_is_fullscreen(Window window);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -940,4 +940,4 @@ static void x_shortcut_init(struct keyboard_shortcut *ks)
|
|||||||
g_free(str_begin);
|
g_free(str_begin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
@ -69,4 +69,4 @@ void x_free(void);
|
|||||||
struct geometry x_parse_geometry(const char *geom_str);
|
struct geometry x_parse_geometry(const char *geom_str);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user