If you do code
GObject derivated classes using Emacs and is tired of so much typing, find and replace just to declare some classes, you must like my new set of Elisp functions: gobject-class.el
There are 3 helper functions
gobject-class-header class_name parent_class_name
- Inserts in the current buffer the stuff you usually put into header (.h) files. These include common used/recommended C-pre-processor macros, typedefs, structs and
gobject-class-code class_name parent_class_name
- Inserts in the current buffer the stuff you usually put into code implementation (.c) files. These include
gobject-class-generate class_name parent_class_name
- This is a combo of the previous, that already split the screen, create the files with gtk/glib name schema. This is what I use most.
You can bind them to some key, like gobject-class-generate to F7 using
(global-set-key [f7] 'gobject-class-generate), or just call them using
Please notice that both
parent_class_name expects a string with underscores (“_”) separating the namespace and other components. Examples:
Maybe you’re interested in my .emacs.