From: Brenden Matthews Date: Mon, 27 Jul 2009 20:47:19 +0000 (-0600) Subject: Add vim modelines. X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=d97cd93a1c2eb18a697aa1e3c59e03eeabdc454d;p=monky Add vim modelines. --- diff --git a/Makefile.am b/Makefile.am index de6438c..7f68321 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,4 +69,4 @@ doxy: Doxyfile .PHONY: distclean-local doxy -# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: +# vi:set ts=4 sw=4 noet ai nocindent syntax=automake: diff --git a/src/Makefile.am b/src/Makefile.am index e8c5cb3..9111c70 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -252,4 +252,4 @@ EXTRA_DIST = \ ccurl_thread.h -# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: +# vi:set ts=4 sw=4 noet ai nocindent syntax=automake: diff --git a/src/algebra.c b/src/algebra.c index 6fda32d..d72bcf0 100644 --- a/src/algebra.c +++ b/src/algebra.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #define _GNU_SOURCE #include "config.h" diff --git a/src/algebra.h b/src/algebra.h index 6f44ec6..f464eac 100644 --- a/src/algebra.h +++ b/src/algebra.h @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #ifndef _ALGEBRA_H #define _ALGEBRA_H diff --git a/src/apcupsd.c b/src/apcupsd.c index 19f3140..cca6891 100644 --- a/src/apcupsd.c +++ b/src/apcupsd.c @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #include "conky.h" #include "apcupsd.h" diff --git a/src/apcupsd.h b/src/apcupsd.h index bf9ea33..2dfa02a 100644 --- a/src/apcupsd.h +++ b/src/apcupsd.h @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #ifndef APCUPSD_H_ #define APCUPSD_H_ diff --git a/src/audacious.c b/src/audacious.c index a6d7b8b..fbaf8fc 100644 --- a/src/audacious.c +++ b/src/audacious.c @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #include "config.h" #include "conky.h" diff --git a/src/audacious.h b/src/audacious.h index b929f95..79eddc5 100644 --- a/src/audacious.h +++ b/src/audacious.h @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #ifndef AUDACIOUS_H #define AUDACIOUS_H diff --git a/src/bmpx.c b/src/bmpx.c index 5e71813..7be4544 100644 --- a/src/bmpx.c +++ b/src/bmpx.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/bmpx.h b/src/bmpx.h index 5808469..a036d27 100644 --- a/src/bmpx.h +++ b/src/bmpx.h @@ -1,3 +1,27 @@ +/* Conky, a system monitor, based on torsmo + * + * Please see COPYING for details + * + * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. + * (see AUTHORS) + * All rights reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ + #ifndef BMPX_H_ #define BMPX_H_ diff --git a/src/ccurl_thread.c b/src/ccurl_thread.c index 5d64f89..11d12df 100644 --- a/src/ccurl_thread.c +++ b/src/ccurl_thread.c @@ -19,6 +19,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/colours.c b/src/colours.c index cfa60e5..0ea1e8a 100644 --- a/src/colours.c +++ b/src/colours.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" #include "logging.h" diff --git a/src/common.c b/src/common.c index 4700be1..11eaa39 100644 --- a/src/common.c +++ b/src/common.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/conf_cookie.c b/src/conf_cookie.c index 91905a6..cc7a4b6 100644 --- a/src/conf_cookie.c +++ b/src/conf_cookie.c @@ -1,3 +1,27 @@ +/* Conky, a system monitor, based on torsmo + * + * Please see COPYING for details + * + * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. + * (see AUTHORS) + * All rights reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ + #define _GNU_SOURCE #include "config.h" #include diff --git a/src/conky.c b/src/conky.c index c36fbcf..b83a3da 100644 --- a/src/conky.c +++ b/src/conky.c @@ -1,5 +1,6 @@ /* Conky, a system monitor, based on torsmo * + * * Any original torsmo code is licensed under the BSD license * * All code written since the fork of torsmo is licensed under the GPL @@ -23,6 +24,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" @@ -9462,6 +9465,7 @@ int main(int argc, char **argv) #endif return 0; + } void alarm_handler(void) { diff --git a/src/conky.h b/src/conky.h index 1193a7c..3189311 100644 --- a/src/conky.h +++ b/src/conky.h @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #ifndef _conky_h_ diff --git a/src/diskio.c b/src/diskio.c index 0f0ff15..3596ee6 100644 --- a/src/diskio.c +++ b/src/diskio.c @@ -24,6 +24,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/eve.c b/src/eve.c index 40f72f7..6d05c58 100644 --- a/src/eve.c +++ b/src/eve.c @@ -17,6 +17,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "eve.h" diff --git a/src/fonts.c b/src/fonts.c index 1db7623..388921d 100644 --- a/src/fonts.c +++ b/src/fonts.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" #include "fonts.h" diff --git a/src/freebsd.c b/src/freebsd.c index 6075138..00399ed 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include diff --git a/src/fs.c b/src/fs.c index 50c6ff9..6fbaa17 100644 --- a/src/fs.c +++ b/src/fs.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/hddtemp.c b/src/hddtemp.c index 5b1e22e..7f18e3e 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/ibm.c b/src/ibm.c index 97f174b..9af81df 100644 --- a/src/ibm.c +++ b/src/ibm.c @@ -24,6 +24,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/imlib2.c b/src/imlib2.c index c544a30..282b297 100644 --- a/src/imlib2.c +++ b/src/imlib2.c @@ -17,6 +17,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/libmpdclient.c b/src/libmpdclient.c index 3df620a..b9af206 100644 --- a/src/libmpdclient.c +++ b/src/libmpdclient.c @@ -29,6 +29,8 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/libtcp-portmon.c b/src/libtcp-portmon.c index b06b9be..41b6b2d 100644 --- a/src/libtcp-portmon.c +++ b/src/libtcp-portmon.c @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #ifdef HAVE_CONFIG_H #include diff --git a/src/linux.c b/src/linux.c index 483e547..da2da5a 100644 --- a/src/linux.c +++ b/src/linux.c @@ -24,6 +24,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/llua.c b/src/llua.c index 9b38cfa..d7fd794 100644 --- a/src/llua.c +++ b/src/llua.c @@ -17,6 +17,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/mail.c b/src/mail.c index d6fef22..078b308 100644 --- a/src/mail.c +++ b/src/mail.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/mboxscan.c b/src/mboxscan.c index e2e3cfa..59d4ab0 100644 --- a/src/mboxscan.c +++ b/src/mboxscan.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/mixer.c b/src/mixer.c index 974081a..b7245e5 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/moc.c b/src/moc.c index 38c360f..e55b3bb 100644 --- a/src/moc.c +++ b/src/moc.c @@ -16,6 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/mpd.c b/src/mpd.c index c60845c..27b138a 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/netbsd.c b/src/netbsd.c index 9ac3413..558230e 100644 --- a/src/netbsd.c +++ b/src/netbsd.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "netbsd.h" diff --git a/src/nvidia.c b/src/nvidia.c index 62ae71f..92373c0 100644 --- a/src/nvidia.c +++ b/src/nvidia.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "nvidia.h" diff --git a/src/openbsd.c b/src/openbsd.c index c870c59..27334f6 100644 --- a/src/openbsd.c +++ b/src/openbsd.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include diff --git a/src/prss.c b/src/prss.c index 2bbe589..84cc803 100644 --- a/src/prss.c +++ b/src/prss.c @@ -13,7 +13,11 @@ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #include "conky.h" #include "prss.h" diff --git a/src/rss.c b/src/rss.c index 7325482..54ee550 100644 --- a/src/rss.c +++ b/src/rss.c @@ -19,6 +19,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/smapi.c b/src/smapi.c index e0ca9e1..5ff8dd0 100644 --- a/src/smapi.c +++ b/src/smapi.c @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA. * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #define _GNU_SOURCE #include "conky.h" /* text_buffer_size, PACKAGE_NAME, maybe more */ diff --git a/src/solaris.c b/src/solaris.c index a420e67..6bd63db 100644 --- a/src/solaris.c +++ b/src/solaris.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ /* doesn't work, feel free to finish this */ diff --git a/src/sony.c b/src/sony.c index 7a25788..f29dee5 100644 --- a/src/sony.c +++ b/src/sony.c @@ -19,6 +19,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ /* conky support for information from sony_laptop kernel module * information from sony_laptop kernel module diff --git a/src/specials.c b/src/specials.c index fdedb5a..fd2128b 100644 --- a/src/specials.c +++ b/src/specials.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" #include "colours.h" diff --git a/src/tailhead.c b/src/tailhead.c index 2e7b206..953a3db 100644 --- a/src/tailhead.c +++ b/src/tailhead.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "text_object.h" diff --git a/src/tcp-portmon.c b/src/tcp-portmon.c index b969b59..2b26326 100644 --- a/src/tcp-portmon.c +++ b/src/tcp-portmon.c @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * $Id$ + * vim: ts=4 sw=4 noet ai cindent syntax=c * */ #include "conky.h" diff --git a/src/temphelper.c b/src/temphelper.c index fe6b2f5..751f035 100644 --- a/src/temphelper.c +++ b/src/temphelper.c @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA. * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" #include diff --git a/src/text_object.c b/src/text_object.c index cf89c9b..6e6311e 100644 --- a/src/text_object.c +++ b/src/text_object.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "text_object.h" #include "logging.h" diff --git a/src/timed_thread.c b/src/timed_thread.c index c53a74f..798fbfc 100644 --- a/src/timed_thread.c +++ b/src/timed_thread.c @@ -15,7 +15,11 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 - * USA. */ + * USA. + * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + */ #ifdef HAVE_CONFIG_H #include diff --git a/src/top.c b/src/top.c index 640658f..e9bc680 100644 --- a/src/top.c +++ b/src/top.c @@ -24,6 +24,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "top.h" diff --git a/src/users.c b/src/users.c index 10cddba..61b9200 100644 --- a/src/users.c +++ b/src/users.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h" diff --git a/src/weather.c b/src/weather.c index c6a7360..1cb0456 100644 --- a/src/weather.c +++ b/src/weather.c @@ -19,6 +19,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ /* diff --git a/src/x11.c b/src/x11.c index 6f0c35f..b87ab19 100644 --- a/src/x11.c +++ b/src/x11.c @@ -23,6 +23,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "config.h" diff --git a/src/xmms2.c b/src/xmms2.c index 24398b3..57b951d 100644 --- a/src/xmms2.c +++ b/src/xmms2.c @@ -22,6 +22,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * + * vim: ts=4 sw=4 noet ai cindent syntax=c + * */ #include "conky.h"