FreeBSD Porter's Handbook Prev Chapter 19. As many of the categories overlap, you often have to choose which of the categories should be the primary category of your port. There are several rules that govern this issue. Here is the list of priorities, in decreasing order of precedence. Language specific categories always come first.
Specific categories win over less-specific ones.
In particular, you should not put x11 in the category line for X applications. Emacs modes should be placed in the same ports category as the application supported by the mode, not in editors . For example, an Emacs mode to edit source files of some programming language should go into lang . If your port truly does not belong anywhere else, put it in misc . If you are not sure about the category, please put a comment to that effect in your send-pr submission so we can discuss it before we import it.