If you have access to Cisco Network Assistant you can apply the pre-configured smart port macro's.
Otherwise if you wish to create your own you have two options nowadays, first being the standard macro and the second being the auto macro that can determine which device is connected to the switch port using CDP and automatically apply a pre-defined role. The later has only recently become avaliable so it will depend on both which switch your using and which version of IOS your running.
The following are built into most IOS versions by default
cisco-global
Use this global configuration macro to enable rapid PVST+, loop guard, and dynamic port error recovery for link state failures.
cisco-desktop
Use this interface configuration macro for increased network security and reliability when connecting a desktop device, such as a PC, to a switch port.
cisco-phone
Use this interface configuration macro when connecting a desktop device such as a PC with a Cisco IP Phone to a switch port. This macro is an extension of the cisco-desktop macro and provides the same security and resiliency features, but with the addition of dedicated voice VLANs to ensure proper treatment of delay-sensitive voice traffic.
cisco-switch
Use this interface configuration macro when connecting an access switch and a distribution switch or between access switches connected by using small form-factor pluggable (SFP) modules.
cisco-router
Use this interface configuration macro when connecting the switch and a WAN router.
cisco-wireless
Use this interface configuration macro when connecting the switch and a wireless access point.
Cisco Network Assistant
http://www.cisco.com/en/US/products/ps5931/index.html
Cisco 2960 Smartport Macro's
http://www.cisco.com/en/US/docs/swi...e/12.2_37_se/configuration/guide/swmacro.html
Cisco 2960 Auto Smartports Macros
http://www.cisco.com/en/US/docs/swi...e/12.2_50_se/configuration/guide/swmacro.html